我正在尝试在trace3日志级别启用mod_rewrite详细日志logging, 如man 。
我把这一行放在我的conf :
LogLevel alert rewrite:trace3
不过,我得到这个错误:
/ etc / apache2 / sites-enabled /“my_site”的第6行的语法错误:LogLevel带有一个参数,错误日志logging中的详细程度
我的Apache版本是:Apache / 2.2.17(Ubuntu)
这是从我的conf文件摘录:
<VirtualHost 10.10.10.14:80> ServerName my_site <br> DocumentRoot "/data/website/php./web" <br> ErrorLog "/data/website/logs/error.log <br> CustomLog "/data/website/logs/access.log combined <br> LogLevel alert rewrite:trace3 <br> </VirtualHost>
请帮助我纠正LogLevel语句。 谢谢。
你正在查看错误的文档!
RewriteLog
熟悉早期版本的mod_rewrite的人无疑会在寻找RewriteLog和RewriteLogLevel指令。 这个function已经完全被上面提到的新的每个模块的日志configuration所取代
您需要查看Apache 2.2文档并使用RewriteLog和RewriteLogLevel指令。