ErrorDocument not displayed
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > ErrorDocument not displayed




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    ErrorDocument not displayed  
Fredrik


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:38 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register