You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/04/05 15:44:08 UTC

DO NOT REPLY [Bug 46969] New: CustomLog format %m always GET on errors with local ErrorDocument

https://issues.apache.org/bugzilla/show_bug.cgi?id=46969

           Summary: CustomLog format %m always GET on errors with local
                    ErrorDocument
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: evanc@nortel.com


CustomLog format %m is always GET in an error condition when the error message
is provided by a local ErrorDocument.  %m is correct for a successful
connection.  %m is also correct with ErrorDocument disabled.

The local ErrorDocument is a .shtml with server-side includes enabled. 
REQUEST_METHOD as reported by printenv in the .shtml is also GET.  The original
method is stored in REDIRECT_REQUEST_METHOD.  I tried to log
"%<m" instead to get the original request's method, but that also logged
GET instead of the original method.

Running Apache 2.2.11 as forward proxy server, with mod_proxy, mod_proxy_http
and mod_proxy_connect.  Problem can be duplicated with HEAD and CONNECT
requests to unavailable/invalid URLs.

-- 
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


DO NOT REPLY [Bug 46969] CustomLog format %m always GET on errors with local ErrorDocument

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46969


Nick Kew <ni...@webthing.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO


--- Comment #1 from Nick Kew <ni...@webthing.com> 2009-08-22 18:47:57 PDT ---
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?

-- 
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


[Bug 46969] CustomLog format %m always GET on errors with local ErrorDocument

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46969

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

-- 
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


DO NOT REPLY [Bug 46969] CustomLog format %m always GET on errors with local ErrorDocument

Posted by bu...@apache.org.
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