首页 > Web开发 > 详细

Invalid command 'RewriteLog' - apache2.4版本配置方法变了

时间:2020-03-21 10:19:18      阅读:89      评论:0      收藏:0      [点我收藏+]

 以前这么配置:

...
RewriteLog logs/gidapp.rewrite_log
RewriteLogLevel 3
RewriteEngine On
...
LogLevel warn
...

改为:

...
RewriteEngine On
...
LogLevel warn rewrite:trace3
...

查看日志:

tail -f /usr/local/apache/logs/error_log
[Sat Mar 21 08:21:34.518820 2020] [rewrite:trace3] [pid 5618:tid 2482998080] mod_rewrite.c(483): ....

调试完还是关掉的好,避免增加服务器负载。

From the official Apache 2.4 Documentation page: Apache Module mod_rewrite

Invalid command 'RewriteLog' - apache2.4版本配置方法变了

原文:https://www.cnblogs.com/v5captain/p/12536446.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!