You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Vincent Deffontaines <vi...@gryzor.com> on 2009/09/26 21:41:59 UTC

[PATCH] Log inconsistency on rewrite [F]

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