赞
踩
- server {
- listen 9191;
- server_name xxx;
-
- location / {
- root arcroomsys;
- index index.html;
- try_files $uri $uri/ /index.html;
- }
- }
root arcroomsys; #nginx项目路径,此处为相对路径
index index.html; #vue的index.html文件
try_files $uri $uri/ /index.html; #将后续路由,重定向到index.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。