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工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

3d文字动画效果
js实现table表格动态新增行和列表
利用html5+css3实现滚雪球效果(附代码)
canvas黑洞漩涡(canvas+js)
纯css制作卡通头像(随鼠标转头)
利用css3做一个动态loading效果
在线生成金属文字











