Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

system wide error document

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
HI all,

I am running apache with a couple virtualhosts listening on different IP address.

Instead of defineing the error document for each virtual directory, is there a better way to define a global error document in httpd.conf?

I've tried adding
ErrorDocument 404 /errors/error.html
ErrorDocument 403 /errors/error.html
ErrorDocument 401 /errors/error.html

on the root level (out side of the <virtualHost> tag, but that didn't seem to have worked ....


Many thanks!
 
What do the logs say? Is /errors/ a valid path relative to the main/default DocumentRoot? Is /errors/error.html readable by the apache user?
 
I think you just need to define them globally (in the main section) then Alias the "error" directory.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top