httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53772] New: REDIRECT_URL not accessible in mod_proxy
Date Fri, 24 Aug 2012 08:22:05 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53772

          Priority: P2
            Bug ID: 53772
          Assignee: bugs@httpd.apache.org
           Summary: REDIRECT_URL not accessible in mod_proxy
          Severity: normal
    Classification: Unclassified
          Reporter: navaj072-info@yahoo.de
          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.
Example:

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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message