將nginx從一個服務器遷移到另一個服務器后執行nginx -t檢查配置沒有問題,重啟服務后訪問報500內部錯誤,查看日志報rewrite or internal redirection cycle while internally redirecting to "/index.html"
經多次排查確認是靜態頁面的路徑不對,但nginx -t也沒有報錯,比較坑,修改后解決問題。
將nginx從一個服務器遷移到另一個服務器后執行nginx -t檢查配置沒有問題,重啟服務后訪問報500內部錯誤,查看日志報rewrite or internal redirection cycle while internally redirecting to "/index.html"
經多次排查確認是靜態頁面的路徑不對,但nginx -t也沒有報錯,比較坑,修改后解決問題。
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。