server {
    listen       8084;
    **root /home/yq/zx-web/dist/;**
    location / {
	**try_files $uri $uri/ /index.html;**
	expires 1d; 
   		index  index.html index.htm;
	autoindex on;
    }

    #error_page  404              /404.html;
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
Logo

前往低代码交流专区

更多推荐