Dispatcher does not pass mod_rewrite logging included via disp_apache2.c

Avatar

Avatar

leoh16127286

Avatar

leoh16127286

leoh16127286

22-10-2019

I was unable to turn logging on for mod_rewrite.

I tried setting "LogLevel warn rewrite:info" in my_publish.vhost (see core - Apache HTTP Server Version 2.5 ), but my own rewrites would not get logged. On the other hand, default rewrite rules started getting logged with this setting.

Any suggestions?

Thanks,

Leo

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

albini65002106

Avatar

albini65002106

albini65002106

31-10-2019

Try the following configuration if that helps - LogLevel alert rewrite:trace6

Answers (5)

Answers (5)

Avatar

Avatar

leoh16127286

Avatar

leoh16127286

leoh16127286

01-11-2019

LogLevel alert rewrite:trace6 produces rewrites in error_log. I did not check error_log initially because it was counter-intuitive to search for debug info in errors

Avatar

Avatar

leoh16127286

Avatar

leoh16127286

leoh16127286

30-10-2019

As for https://stackoverflow.com/questions/9632852/how-to-debug-apache-mod-rewrite​, the suggestion is to use LogLevel in Apache 2.4, which I did

Avatar

Avatar

leoh16127286

Avatar

leoh16127286

leoh16127286

30-10-2019

I tried setting "LogLevel warn rewrite:debug" which did not produce any rewrite rules output either.

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

23-10-2019

Mod_rewite is one of the many modules that is installed on apache. You can look at [1] on enabling logging for rewrite module.

[1] https://stackoverflow.com/questions/9632852/how-to-debug-apache-mod-rewrite

Avatar

Avatar

hamidk92094312

Employee

Avatar

hamidk92094312

Employee

hamidk92094312
Employee

22-10-2019

What if you set the log level to more verbose level e.g. debug ?