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;

相关推荐
青禾8376 小时前
Linux 操作系统入门指南:从目录结构到常用命令
linux·运维·服务器
zhengqweasd7 小时前
流量没跑满、带宽空闲,业务依然卡顿
运维·服务器·网络
M哥支付8 小时前
高频交易优选方案:银联快捷支付通道
服务器·网络·其他·微信·金融
Y3815326628 小时前
Docker Compose 服务依赖与健康检查:healthcheck 让容器按正确顺序启动
运维·docker·容器
稳联技术老娜8 小时前
伺服内嵌EtherNet IP方案:嵌入式小板SPI通讯固件Demo程序适配改造
运维·服务器·网络
en.en..9 小时前
Linux系统编程:fcntl 与 ioctl
linux·运维·服务器
荣合技术服务10 小时前
Codex 实战:用 AI 写运维脚本
运维·codex
会周易的程序员10 小时前
5Draft(五帝)测试报告
服务器·c++·分布式·raft·共识算法·共识·算力服务器
李昊哲小课10 小时前
Deepin 25 上安装 Docker CE 实战记录
运维·docker·容器·deepin
pingglala10 小时前
ubuntu-nat模式不能上网解决方法
linux·运维·ubuntu