網站上線后,調試一會顯示500錯誤,提示如下:
- Internal Server Error
- The server encountered an internal error or misconfiguration and was unable to complete your request.
- Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
- More information about this error may be available in the server error log.
查看后說是服務器錯誤,然后查看了服務器日志,找到錯誤日志提示如下:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://www.companysz.com
翻譯:請求超過了10個內部重定向的限制,由于可能的配置錯誤,使用'LimitInternalRecursion'如果需要增加限,使用“將LogLevel調試”獲得回溯,來源:http://www.companysz.com
內部重定向限制,跟重寫模塊有關,查看.htaccess文件,果然發現重寫規則寫錯了.
修改過后就可以正常打開了,注:很多情況是在本地做好的網站,上傳后沒有及時修改.htaccess文件,造成這種情況.
新聞熱點
疑難解答
圖片精選