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
标签:index,8055,htm,配置,server,Nginx,html From: https://www.cnblogs.com/1285026182YUAN/p/17828629.html