I have added the following line to my httpd.conf file:
ErrorDocument 404 /cgi-bin/forward
forward is a Python program that determines the server name and
forwards a user on to a site-tree of the domain they were looking
for.
The problem is that it is not using the forward program.
There was already an existing, system wide, special 404 error page
that will work if I change the above to /cgi-bin/missing.
If I go to
www.domain.com/cgi-bin/forward it works... but not if
I get a 404 error... it just shows the generic 404 page.
Any help here? I really appreciate it.
----- By the way -----
The reason I am using this script is because I tried the following
ErrorDocument 404 /not-found.shtml ... and ...
ErrorDocument 404 not-found.shtml
Neither worked. So I figured apache was looking for these in its
root directory. I need a different not-found.shtml for each domain
so a global approach would not work.
Is this right, am I missing somehting here?