什么是Loglevel调试?

Web*_*net 14 rewrite apache2

我的网站的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://URL/TO/REFERER
Run Code Online (Sandbox Code Playgroud)

我的问题是,什么是LogLevel?我用谷歌搜索了它,但似乎我只是得到了关于java的东西.我们的网站是PHP.

更新

我添加LogLevel debug到apache2.conf并重新启动了apache但在错误日志中没有任何不同.

Lau*_*con 5

在debian上,编辑/etc/apache2/apache2.conf并添加:

RewriteLogLevel 3
RewriteLog "/var/log/apache2/rewrite.log"
Run Code Online (Sandbox Code Playgroud)

然后重新加载apache:

/etc/init.d/apache2 reload
Run Code Online (Sandbox Code Playgroud)

从浏览器访问您的http网页,如果错误仍然存​​在,您将在文件中看到有关您的错误的一些信息:

/var/log/apache2/rewrite.log
Run Code Online (Sandbox Code Playgroud)

  • 这不适用于最新版本的 Apache(至少我在 Ubuntu 上是 2.4.6)。这帮助了我 http://stackoverflow.com/questions/5641618/how-to-enable-loglevel-debug-on-apache2-server (2认同)