httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46969] CustomLog format %m always GET on errors with local ErrorDocument
Date Mon, 07 Sep 2009 04:32:13 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46969



--- Comment #2 from evanc@nortel.com 2009-09-06 21:32:09 PDT ---
(In reply to comment #1)
> I am able to reproduce part of this: namely GET is always shown as
> REQUEST_METHOD in a .shtml errordocument.  However, my access log always shows
> the original method, as expected.  That's with a 404.shtml errordocument.
> 
> Can you post a configuration extract and request that'll demonstrate this?

Sorry for the delay.  Here is a short configuration that demonstrates this:

User nobody
Group nobody
LogFormat "%t %m %U%q %>s" access_log
CustomLog "logs/access_log" access_log
ErrorLog "logs/error_log"
LogLevel crit

DefaultType text/plain
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
ErrorDocument 400 /error/template.shtml
ErrorDocument 403 /error/template.shtml
ErrorDocument 404 /error/template.shtml
ErrorDocument 502 /error/template.shtml
ErrorDocument 503 /error/template.shtml

<Directory />
        AllowOverride None
        Deny from all
</Directory>

DocumentRoot "/usr/local/apache/htdocs"
<Directory "/usr/local/apache/htdocs/error">
        Options IncludesNoExec
        Allow from all
</Directory>

ProxyRequests On
Listen 8080
<Proxy *>
        Deny from all
</Proxy>

Server version: 2.2.13

Request via proxy: https://doesnotexist.mycompany.com/ (CONNECT
doesnotexist.mycompany.com:443)
Access log result:
[07/Sep/2009:04:00:01 +0000] GET doesnotexist.mycompany.com:443 403

Request via proxy: HEAD http://doesntoexist.mycompany.com/
Access log result:
[07/Sep/2009:04:13:03 +0000] GET http://doesnotexist.ca.nortel.com/ 403

In either case, GET is logged instead of CONNECT.

Thanks very much for your help.

Evan

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message