欢迎光临 - 我的站长站,本站所有资源仅供学习与参考,禁止用于商业用途或从事违法行为!

服务器配置

500错误The server encountered an internal error or misconfigu

服务器配置 我的站长站 2019-05-10 共349人阅读

500错误The server encountered an internal error or misconfigu

报错截图

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.kfd-crusher.com
翻译:请求超过了10个内部重定向的限制,由于可能的配置错误。使用'LimitInternalRecursion'如果需要增加限。使用“将LogLevel调试”获得回溯,来源:http://www.kfd-crusher.com

内部重定向限制,跟重写模块有关,查看.htaccess文件,果然发现重写规则写错了;
修改过后就可以正常打开了。

注:很多情况是在本地做好的网站,上传后没有及时修改.htaccess文件,造成这种情况。