Nginx - 配置
1. 发布静态网站(指定地址)
server { listen 8055; server_name localhost; location / { root D:\IISPublish\stand; index index.html index.htm; } }
2. 发布vue的history模式,配置如下
server { listen 8055; server_name localhost; location / { root D:\IISPublish\stand; index index.html index.htm; try_files $uri $uri/ /index.html; } }
、
苛棋
end