2014-02-15 40 views
1

我正在使用Vagrant進行Laravel項目。我使用這個URL訪問我的項目:localhost:8081Laravel Vagrant - Inernal服務器錯誤

但是最近,當我運行「Vagrant up」並嘗試通過瀏覽器訪問時,它顯示「內部服務器錯誤」。

Internal Server Error 

The server encountered an internal error or misconfiguration and was unable to complete your request. 

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error. 

More information about this error may be available in the server error log. 

我懷疑造成這個問題的唯一的事情是: 我的BT客戶端不斷崩潰,我輸入了以下命令從崩潰修復我的洪流:「netsh接口的Teredo設置狀態已禁用」 (發現在網絡上該解決方案)

當我看到流浪漢ssh進入我的虛擬機和cd到的/ var /日誌/ Apache2的和開放的error.log中,我得到如下:

[Sat Feb 15 11:17:47.144253 2014] [core:error] [pid 924] [client 10.0.2.2:51189] AH00124: 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. 
[Sat Feb 15 11:17:51.706669 2014] [core:error] [pid 922] [client 10.0.2.2:51190] AH00124: 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. 

請幫助,謝謝!

回答

1

我發佈了這個解決方案後的幾個星期。 Debian/Ubuntu上的Apache在我發佈這個問題的時候得到了更新,並且doc根改爲/ var/www/html而不是/ var/www。所以我必須改變vagrant文​​件中的sym鏈接才能正常工作。

0

檢查您的.htaccess或虛擬主機配置。

嘗試刪除它們並使用絕對URL進行訪問。

如果沒有幫助,請檢查您的php.ini文件是否有錯誤。

0

根據你的錯誤日誌報告:

[週六11年2月15日:17:47.144253 2014] [核心:錯誤] [PID 924] [客戶 10.0.2.2:51189] AH00124:請求超過由於可能的配置錯誤而導致的10個內部重定向的限制。如果需要,使用 'LimitInternalRecursion'來增加限制。使用 'LogLevel調試'來獲得回溯。

這是一個內部服務器錯誤,它是由於在.htaccess文件中的任何無效Mod_Rewrite規則,可以創建一個redirect loop最有可能。

不能特別幫助,但this可能會給你一些想法,這些答案(equest-exceeded...1request-exceeded...2)也可能有幫助。