标签:config his 根目录 try class mod location 模式 hello
server { listen 8899; server_name localhost; location / { try_files $uri $uri/ /index.html; } }
const router = new VueRouter({ mode: ‘history‘, base: ‘/hello‘, routes })
server { listen 8088; server_name xxx.com; # localhost修改为您证书绑定的域名。 location / { } location /hello{ try_files $uri $uri/ /hello/index.html; } }
以上只是针对项目放在子级目录的情况,刷新404的问题待解决
标签:config his 根目录 try class mod location 模式 hello
原文地址:https://www.cnblogs.com/lan-cheng/p/12127620.html