问题描述
我网站的 error.log 文件说
My error.log file for my site says
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://URL/TO/REFERER
我的问题是,什么是 LogLevel?我已经用谷歌搜索过了,但似乎我只是在了解有关 Java 的信息.我们的网站使用 PHP.
My question is, what is LogLevel? I've googled it but it seems like I'm just getting things about java. Our site is in PHP.
更新
我将 LogLevel debug
添加到 apache2.conf 并重新启动了 apache,但错误日志中没有任何不同.
I added LogLevel debug
to the apache2.conf and restarted apache but am getting nothing different in the error logs.
推荐答案
在 debian 上,编辑/etc/apache2/apache2.conf 并添加:
On debian, edit /etc/apache2/apache2.conf and add :
RewriteLogLevel 3
RewriteLog "/var/log/apache2/rewrite.log"
然后重新加载apache:
then reload apache :
/etc/init.d/apache2 reload
从浏览器访问您的 http 网页,如果错误仍然存在,你会在文件中看到一些关于你的错误的信息:
Access your http webpage from a browser, if the bug is still there,you will see some info about your error in the file :
/var/log/apache2/rewrite.log
这篇关于什么是日志级别调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!