jeecgboot- vue -前端部署Nginx出現404解決方法


jeecgboot項目,使用nginx部署vue項目刷新報404,正常訪問沒問題,只有在刷新的時候才會出現問題


server {
listen 80;
server_name localhost;
location / {
root /app;
index index.html;
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
別問,問就這一句話try_files $uri $uri/ /index.html;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM