mcdunna77
asked on
server wide ErrorDocument with virtual hosts
hey there,
In my apache config file I have this as the default directory:
<Directory "d:/www">
Options FollowSymLinks +ExecCGI
AllowOverride None
AddHandler cgi-script .pl
ScriptInterpreterSource registry
Order deny,allow
Allow from all
ErrorDocument 404 /custom/cust_404b.html
</Directory>
then I have a couple of virtual hosts defined like this:
<VirtualHost 123.123.123.123:80>
ServerName demo.example.com
DocumentRoot d:/www/demo
</VirtualHost>
The problem is that the way I have it set up, I have to have a separate "/custom/cust_404b.html" directory and file in every virtual host directory since the URL path to the error document is relative. How can I have a server wide custom error document such that a 404 for any domain/page combination hosted by my server returns the same error document?
thanks!
-andrew
In my apache config file I have this as the default directory:
<Directory "d:/www">
Options FollowSymLinks +ExecCGI
AllowOverride None
AddHandler cgi-script .pl
ScriptInterpreterSource registry
Order deny,allow
Allow from all
ErrorDocument 404 /custom/cust_404b.html
</Directory>
then I have a couple of virtual hosts defined like this:
<VirtualHost 123.123.123.123:80>
ServerName demo.example.com
DocumentRoot d:/www/demo
</VirtualHost>
The problem is that the way I have it set up, I have to have a separate "/custom/cust_404b.html" directory and file in every virtual host directory since the URL path to the error document is relative. How can I have a server wide custom error document such that a 404 for any domain/page combination hosted by my server returns the same error document?
thanks!
-andrew
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.