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;