vuejs在nginx非根目录下部署,页面强制刷新时出现404解决方法。
server { listen 80; server_name xxxx.com; #charset koi8-r; #access_log logs/host.access.log main; location /vuejs-admin-server { proxy_pass http://127.0.0.1:8080/vuejs-admin-server; } #二级目录配置开始 location ^~/tools { alias /www/wwwroot/xxx.cn/tools/; #index index.html; try_files $uri $uri/ @rewrites; } location @rewrites { rewrite ^/(tools)/(.+)$ /$1/index.html last; } #二级目录配置结束 error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } }
上面是“解决vuejs应用在nginx非根目录下部署时强制刷新404”的全面内容,想了解更多关于 vuejs 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_2142.html
workflows工作流
基础扩图comfyui工作流
一种长着彩虹翅膀的虫子comfyui工作流
一只可爱的小鸟在飞翔ComfyUI工作流
文生图工作流:一幅海底睡莲,碧海蓝天comfyui工
一幅以霓虹灯照亮的城市天际线和未来主义画
一只外星甲壳虫子ComfyUI工作流
一朵染血的白玫瑰ComfyUI工作流
一个黄色的海绵宝宝ComfyUI工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!