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 26682] New: - ErrorDocument 502 does not work with mod_rewrite with proxied requests
Date Thu, 05 Feb 2004 12:20:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26682>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26682

ErrorDocument 502 does not work with mod_rewrite with proxied requests

           Summary: ErrorDocument 502 does not work with mod_rewrite with
                    proxied requests
           Product: Apache httpd-2.0
           Version: 2.0.48
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: nito@qindel.es


This my httpd.conf configuration:

Timeout 10
ProxyTimeout 3
ErrorDocument 502 /error/error502.txt
RewriteEngine on
RewriteRule ^/sleep$ http://ws00013/cgi-bin/sleep [P]

The page times out after 10 seconds (instead of 3 seconds with ProxyTimeout).
And the error that is sent back instead the default ErrorDocument (although the
log shows that the ErrorDocument handler is in some way executed:

=================================
502 Bad Gateway
Connection: close
Date: Thu, 05 Feb 2004 11:33:22 GMT
Accept-Ranges: bytes
ETag: "a2a1d-a-408ddc40"
Server: Apache/2.0.48 (Unix)
Content-Length: 10
Content-Type: text/plain
Last-Modified: Thu, 05 Feb 2004 11:29:45 GMT
Client-Date: Thu, 05 Feb 2004 11:33:32 GMT
Client-Response-Num: 1

<HTML>
<HEAD><TITLE>An Error Occurred</TITLE></HEAD>
<BODY>
<H1>An Error Occurred</H1>
502 Bad Gateway
</BODY>
</HTML>
=================================

But the logs show the following:

error_log:
----------

[Thu Feb 05 11:33:32 2004] [error] [client 127.0.0.1] proxy: error reading
status line from remote server ws00013
[Thu Feb 05 11:33:32 2004] [error] [client 127.0.0.1] proxy: Error reading from
remote server returned by /sleep

access_log:
-----------

127.0.0.1 - - [05/Feb/2004:11:33:22 +0000] "ws00013.vfl.vodafone GET /sleep
HTTP/1.1" 502 10 "-" "lwp-request/2.01"
/apps/apache/2.0.48/htdocs/error/error502.txt -
10.99.148.170 - - [05/Feb/2004:11:33:22 +0000] "ws00013.vfl.vodafone GET
/cgi-bin/sleep HTTP/1.1" 200 26 "-" "lwp-request/2.01"
/apps/apache/2.0.48/cgi-bin/sleep

rewrite_log:
------------
127.0.0.1 - - [05/Feb/2004:11:33:32 +0000]
[ws00013.vfl.vodafone/sid#15d798][rid#1fac40/initial/redir#1] (2) init rewrite
engine with requested uri /error/error502.txt
127.0.0.1 - - [05/Feb/2004:11:33:32 +0000]
[ws00013.vfl.vodafone/sid#15d798][rid#1fac40/initial/redir#1] (3) applying
pattern '^/sleep$' to uri '/error/error502.txt'
127.0.0.1 - - [05/Feb/2004:11:33:32 +0000]
[ws00013.vfl.vodafone/sid#15d798][rid#1fac40/initial/redir#1] (1) pass through
/error/error502.txt


I can provide full httpd.conf and sleep cgi if needed.

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


Mime
View raw message