2015年1月12日 星期一

apache錯誤:Request exceeded the limit of 10 internal redirects due to probable configuration error.

主機:CentOS

讀取網址 http://localhost
頁面出現錯誤:
500 Internal Server Error
apache error log:
[Mon Jan 12 12:04:40 2015] [error] [client x.x.x.x] 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.

但是讀取
http://localhost/index.php、http://localhost/index.html、http://localhost/test.php
正常

原因:
httpd.conf 開了Rewrite( LoadModule rewrite_module modules/mod_rewrite.so
 )

<Directory "/var/www/html">裡面的AllowOverride 被改成All
解法:
把<Directory "/var/www/html">裡面的 AllowOverride 改成None

沒有留言:

張貼留言