【发布时间】:2012-12-05 22:09:58
【问题描述】:
我想启用重写日志来调试一些给我带来问题的重写规则。所以我在 httpd.conf 文件的末尾添加了这些行:
<IfModule mod_rewrite.c>
RewriteLog "/logs/rewrite.log"
RewriteLogLevel 4
</IfModule>
接下来我做的是重新启动 Apache。但是,它会导致错误,并且不会启动。这是我在 XAMPP 控制面板中得到的:
13:14:56 [Apache] Error: Apache shutdown unexpectedly.
13:14:56 [Apache] This may be due to a blocked port, missing dependencies,
13:14:56 [Apache] improper privileges, a crash, or a shutdown by another method.
13:14:56 [Apache] Check the "/xampp/apache/logs/error.log" file
13:14:56 [Apache] and the Windows Event Viewer for more clues
我在 error.log 中没有任何线索。实际上发生这个错误时没有生成任何行。
我还尝试将 RewriteLog 行更改为使用绝对路径:
RewriteLog "c:\xampp\apache\logs\rewrite.log"
你能帮帮我吗?
【问题讨论】:
标签: apache mod-rewrite httpd.conf apache2.4 rewritelog