以前这么配置:
... 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
时间: 2024-11-14 00:11:10