ruoyi网页刷新后报404

1、ruoyi网页刷新后报404

解决办法:

修改Nginx配置:nginx.conf

复制代码
修改前
location / {
          root /www/server/nginx/html;
          index index.html index.htm;
        }


修改后
location / {
          root /www/server/nginx/html;
          index index.html index.htm;
          try_files $uri $uri/ /index.html;
        }

新增配置:try_files uri uri/ /index.html;

相关推荐
苏宸啊14 小时前
Linux权限
linux·运维·服务器
Gofarlic_oms114 小时前
Windchill用户登录与模块访问失败问题排查与许可证诊断
大数据·运维·网络·数据库·人工智能
我是小疯子6614 小时前
Python变量赋值陷阱:浅拷贝VS深拷贝
java·服务器·数据库
xqhoj15 小时前
Linux——make、makefile
linux·运维·服务器
文亭湖畔程序猿15 小时前
Debian 12 日常命令 & nano 快捷键速查表
运维·debian
张童瑶15 小时前
Linux 在线安装编译Python3.11
linux·运维·python3.11
ziqibit15 小时前
debian Live with Persistence 持久化U盘的debian系统
运维·debian
Shi_haoliu15 小时前
SolidTime 在 Rocky Linux 9.5 上的完整部署流程
linux·运维·nginx·postgresql·vue·php·laravel
lifejump15 小时前
Pikachu | XXE
服务器·web安全·网络安全·安全性测试
Arwen30316 小时前
IP地址证书的常见问题有哪些?有没有特殊渠道可以申请免费IP证书?
服务器·网络·网络协议·tcp/ip·http·https