git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 62936] Apache 2.4 does not exclude Request_Method from log using SetEnvIf regex


https://bz.apache.org/bugzilla/show_bug.cgi?id=62936

--- Comment #3 from Eric Covener <covener@xxxxxxxxx> ---
(In reply to Serge from comment #2)
> (In reply to Eric Covener from comment #1)
> > > Request_Method "GET(.*)/maxtop\.php$"
> > 
> > This will never match, Request_Method is something like "GET" alone.
> 
> Do you mean we can only exclude ALL GET requests but not certain GET
> requests by regex like
> SetEnvIf Request_Method "\.php$" dontlog
> ?
> Please, comment precisely to understand the issue finally, otherwise the
> question should be REOPENED.

You have to read the names of the parameters, Request_method has nothing to do
with a URL.

The manual is pretty clear:
https://httpd.apache.org/docs/2.4/mod/mod_setenvif.html#setenvif
Request_Method - the name of the method being used (GET, POST, et cetera)

If you want to compare against the method and the URL at the same time, you'll
have to use something more sophisticated like SetEnvIfExpr or <If>

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx