vue-router mode 'history' 模式 nginx配置
server { listen 80; server_name localhost; index index.html index.htm; root /xxx/xxx; location / { try_files $uri $uri/ /index.html =404; } }
希望大佬看到有不对的地方,提出博主予以改正!
server { listen 80; server_name localhost; index index.html index.htm; root /xxx/xxx; location / { try_files $uri $uri/ /index.html =404; } }