Forum Moderators: phranque
ProxyPass /error!
ProxyPass /InternalWebsite/ http://svr2/
ProxyPassReverse /InternalWebsite/ http://svr2/
ErrorDocument 502 http://svr1/error/502.html
ErrorDocument 500 http://svr1/error/500.html
ProxyPass /InternalWebsite2/ http://svr3/
ProxyPassReverse /InternalWebsite2/ http://svr3/
ErrorDocument 502 http://svr1/error/502_svr3.html
ErrorDocument 500 http://svr1/error/500_svr3.html
Can I configure Aapache to use http://svr1/error/502.html if http://svr2/ is down and http://svr1/error/502_svr3.html if http://svr3 is down?
Thanks,
Andrew
[edited by: jdMorgan at 12:40 am (utc) on Oct. 11, 2007]
[edit reason] de-linked [/edit]
You might want to look into the <Directory> and/or <Location> containers (or others) which do introduce a dependency of the contained code on the container. For example, using a <Location> container means that the contained code will only be applied if the requested URL matches that specified in the <Location> directive.
Jim
You should provide only a local URL-path for ErrorDocuments:
ErrorDocument 502 /502_svr3.html
ErrorDocument 500 /500_svr3.html
Jim