Nginx部署Vue项目,添加前缀访问 2021-05-13 20:18:46 Nginx Vue 本文总阅读量(次): 本文字数统计(字):119 本文阅读时长(分):1 首先准备1个vue项目 hello/dist/ - index.html 配置根据路径访问123456789101112location / { root html; try_files $uri $uri/ /index.html; index index.html index.htm;}location /hello { # vue项目的打包后的dist alias D:/demon/hello/dist/; try_files $uri $uri/ /hello/index.html; index index.html index.htm;} 访问 http://127.0.0.1/hello CentOS7服务器指令 Go-FastDfs 安装配置 本文标题:Nginx部署Vue项目,添加前缀访问 文章作者:十二 发布时间:2021-05-13 20:18:46 最后更新:2021-05-13 20:32:59 原始链接:https://www.zhuqiaolun.com/2021/05/1620908327003/1620908327003/ 许可协议:署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。