Apache Server configuration support - ErrorDocument not displayed

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > September 2004 > ErrorDocument not displayed





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ErrorDocument not displayed
Fredrik

2004-09-16, 11:10 am

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






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com