【问题标题】:What is Loglevel debug?什么是 Loglevel 调试?
【发布时间】:2011-02-02 04:49:32
【问题描述】:

我网站的 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

我的问题是,什么是 LogLevel?我已经用谷歌搜索了它,但似乎我只是在了解有关 java 的信息。我们的网站是 PHP 的。

更新

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

【问题讨论】:

    标签: apache2 rewrite


    【解决方案1】:

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

    RewriteLogLevel 3
    RewriteLog "/var/log/apache2/rewrite.log"
    

    然后重新加载 apache:

    /etc/init.d/apache2 reload
    

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

    /var/log/apache2/rewrite.log
    

    【讨论】:

    • RewriteLogLevel 已完全替换
    • 这是给 Debian Lenny 的 :)
    • 这不适用于最新版本的 Apache(至少我在 Ubuntu 上的 2.4.6)。这帮助了我stackoverflow.com/questions/5641618/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-10-20
    • 1970-01-01
    • 2021-07-12
    • 2012-01-31
    • 2022-08-08
    • 2012-10-18
    • 1970-01-01
    相关资源
    最近更新 更多