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;

相关推荐
lbb 小魔仙16 分钟前
Docker一键部署 EasyNode 面板,随时随地可视化管理服务器
服务器·docker·容器
Elastic 中国社区官方博客19 分钟前
Hacknight Beijing:基于阿里云与 Elastic 构建 AI Agents
大数据·运维·人工智能·elasticsearch·搜索引擎·阿里云·云计算
一号弯26 分钟前
用NAVICAT访问非本地服务器的报错问题
运维·服务器
能摆一天是一天30 分钟前
windows docker 部署openfire
运维·docker·容器
jingling55535 分钟前
Flutter | 从基本跳转到路由守卫
服务器·前端·网络·flutter·前端框架
江华森37 分钟前
Git + Maven Java 项目部署实战全指南
运维·笔记·git·学习·maven
stanleyrain37 分钟前
linux上无感操作Windows上的文件夹
linux·运维·windows
黎阳之光43 分钟前
虚实同源·数智治水:黎阳之光视频孪生,重构智慧水务新范式
运维·物联网·算法·安全·数字孪生
IOT.FIVE.NO.143 分钟前
Claude code+Vscode+Remote ssh+ 服务器自定义第三方API配置保姆级教程
服务器·vscode·ssh