解决生产中的apacheredirect问题

如何解决生产中的Apacheredirect问题? 我知道有一个日志loggingfunction,可以logging所有发生的redirect。

要loggingmod_rewrite模块中发生了什么,需要设置RewriteLog和RewriteLogLevel :

RewriteLog /path/to/mod_rewrite.log RewriteLogLevel 2 

在你的Apacheconfiguration(你不能在你的.htaccess设置它们)。

请注意, Apache 2.4中的日志logging已更改。

我通常创build我自己的详细的CustomLog。 其中,我包含HTTP响应标题Location

我还包括其他的东西,如响应时间和HTTP请求头X-Forwarded-For ,其中一些select其他几件事。