Apache Server configuration support - Apache 2 ErrorDocument ProxyPass ajp

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > June 2007 > Apache 2 ErrorDocument ProxyPass ajp





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 Apache 2 ErrorDocument ProxyPass ajp
ekong.tse@cowangroup.ca

2007-06-14, 1:33 pm

Hi,

I am trying to get the custom error page to show up but I am having
problem getting that to work. I use a number of ProxyPass
statements. Here is the code:

<VirtualHost *:80>
DocumentRoot /var/www/sites/mysite
ServerName mysite.ca

ProxyPass /static/ !
ErrorDocument 404 /static/error.html
ProxyErrorOverride On

ProxyPass /cigl/ ajp://<server>:8009/test/ retry=5
ProxyPass / ajp://<server>:8009/test/
</VirtualHost>

The problem is, when I tried to access a non-existent page e.g.
none.html, it is trying to look for it at http://mysite.ca/test/none.html
but it won't try to display the error page at http://mysite.ca/static/error.html.
I'm just wondering if anyone has experienced that can help with it.

Thanks!
E'Kong

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com