httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <tevans...@googlemail.com>
Subject Re: ProxyPass & ErrorDocument
Date Wed, 14 Sep 2011 11:21:09 GMT
On Tue, Sep 13, 2011 at 3:47 PM, Nick Gearls <nickgearls@gmail.com> wrote:
> Unless I misunderstand something, I found a problem with ProxyPass
> behaviour:
> with the config below, I expect, when the back-end server does not answer
> (status 502), to receive my custom HTML page.
> But it doesn't - the exception (ProxyPass  "/local"  !) is ignored.
>
>  ErrorDocument 502 /local/unavailable.html
>  ProxyPass  "/local"  !
> <Location />
>  ProxyPass  "http://..."
> </Location>
>
>
> Note that, when using <Location /path>, the correct custom page is
> displayed.
>
> Is this indeed a bug?
> Any work-around?
>
> Thanks,
>
> Nick
>

I don't use exactly that construct, but this works perfectly

ProxyPass /internal !
ProxyPass /sso !
ProxyPass / http://backend/

Cheers

Tom

Mime
View raw message