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 2015/07/24 22:53:00 UTC

[Bug 58180] New: ErrorDocument original URL in subsequent

https://bz.apache.org/bugzilla/show_bug.cgi?id=58180

            Bug ID: 58180
           Summary: ErrorDocument original URL in subsequent <Location>
           Product: Apache httpd-2
           Version: 2.4.10
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: alexander@polkabrothers.com

I am trying to use the following configuration:

<LocationMatch "(.*\.(html|htm))$">
  ErrorDocument 404 "/error-404.html"
</LocationMatch>

<Location "/error-404.html">
  RequestHeader set customheader "%{ENV:REDIRECT_URL}e"
  ProxyPass "http://otherhost.org/"
  ProxyPassReverse "http://otherhost.org/"
</Location>

So ErrorDocument internally redirects to error-404.html, and in so doing sets a
header REDIRECT_URL = original URL. I then want to proxy the reques to
otherhost.org, setting the original URL as a request header. Everything works,
except for that REDIRECT_URL apparently is not yet available when the
<Location> directives are executed, because 'customheader' above always gets
set to just '{null}'.

So my feature enhancement suggestion is that REDIRECT_URL be made available
somehow in the <Location>.

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