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

Posted 船长博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Invalid command 'RewriteLog' - apache2.4版本配置方法变了相关的知识,希望对你有一定的参考价值。

 以前这么配置:

...
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版本配置方法变了的主要内容,如果未能解决你的问题,请参考以下文章

python安装locustio报错error: invalid command 'bdist_wheel'的解决方法

.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included

Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not inc

安装启动apache2.4后报Invalid command 'order', perhaps misspelled or defined by a module not includ

go json.Unmarshal报错invalid character ' ï' looking for beginning of value

command和bidding的区别?