httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Deffontaines <vinc...@gryzor.com>
Subject [PATCH] Log inconsistency on rewrite [F]
Date Sat, 26 Sep 2009 19:41:59 GMT
Greetings,


A stupid config example to make my point :

Loglevel debug
RewriteEngine On
RewriteRule .* - [F]

This denies all requests, and logs nothing at all in error log to 
explain that behavior.
This is contrary to a common Apache behavior about all non 2XX answers 
triggering an explanation message in error log. For instance, "deny from 
all" does.

It means people need to set RewriteLog stuff to even find out that 
Rewrite was the source of the 403, which is IMHO bad.

I am therefore submitting this trivial patch against trunk's rewrite.c : 
all it does is to add an error log entry when rewrite triggers a [F] rule.

I hope someone will kindly apply it, or please bash me :)

Regards,

gryzor


Mime
View raw message