|
|
@@ -19,6 +19,11 @@ server {
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
}
|
|
|
|
|
|
+ location /web {
|
|
|
+ alias /usr/share/nginx/html;
|
|
|
+ try_files $uri $uri/ /web/index.html; #解决页面刷新404问题
|
|
|
+ }
|
|
|
+
|
|
|
error_page 404 /index.html;
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
location = /50x.html {
|