09-16-04 04:10 PM
Im using apache 1.3 and mod_proxy + vhosts to forward requests from a
firewall computer to a series of internal webservers.
If one of the internal servers isn't online when a request is made,
the user will get a proxy error(502). Instead of this, I want to
redirect the user to a custom error message, either on the proxy
apache server or on a totaly different server. When adding the
ErrorDocument statement seen below, another proxy error is presented:
Proxy Error
The document has moved <here>.
where <here> is the link used in the ErrorDocument row.
I want the user to see the errmsg.php. What do I need to do?
<VirtualHost *>
ErrorDocument 502 http://www.mydomain.com/errmsg.php <--
webhotel
ServerName www1.mydomain.com
ServerAlias www1.mydomain.com
TransferLog "logs/ac_www1_log"
<IfModule mod_proxy.c>
ProxyRequests On
<Directory proxy:*>
Order deny,allow
Allow from all
</Directory>
ProxyPass / http://192.168.0.102:8080/
ProxyPassReverse / http://192.168.0.102:8080/
</IfModule>
</VirtualHost>
[ Post a follow-up to this message ]
|