httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 53772] New: REDIRECT_URL not accessible in mod_proxy
Date Fri, 24 Aug 2012 08:22:05 GMT

          Priority: P2
            Bug ID: 53772
           Summary: REDIRECT_URL not accessible in mod_proxy
          Severity: normal
    Classification: Unclassified
          Hardware: PC
            Status: NEW
           Version: 2.2.19
         Component: mod_proxy
           Product: Apache httpd-2

The environment variable REDIRECT_URL (and possibly others) which is set by the
ErrorDocument directive is not accessible in rewrite rules.

ErrorDocument 404 /internal/errorpage404

RewriteCond %{ENV:REDIRECT_URL} .+
RewriteRule ^/internal/errorpage404
http://<host>:<port>/servlet/errorpage404.jsp?target=%{ENV:REDIRECT_URL} [R,L]

The RewriteRule is never executed, because the REDIRECT_URL is never set.

By the way, what I'm really trying to do is passing the original URL (which
caused the 404) to a Tomcat application. The only possibility I read about is
using mod_jk, but this is not an option for me.

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message