thewing
asked on
Apache's Own Error Msg Pages
Hi,
Can someone tell me where apache generally stores it's own error msg pages, such as 404 (File Not Found) etc. and if these are customizable.I know there is a directive called ErrorDocument that can be written into the httpd.conf file, but it is not redirecting to the file I am directing it to?Any takers?
Cheers
Can someone tell me where apache generally stores it's own error msg pages, such as 404 (File Not Found) etc. and if these are customizable.I know there is a directive called ErrorDocument that can be written into the httpd.conf file, but it is not redirecting to the file I am directing it to?Any takers?
Cheers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ErrorDocument 404 /pathtyournotfound/notfoun
or even
ErrorDocument 404 http://www.yourdomain.com/errors/notfound.html
In notfound.html, you can have whatever verbage and static html that you want.
Using whatever cgi support you have enabled, you can also create an intelligent page which includes things like REDIRECT_URL, REDIRECT_STATUS, REDIRECT_ERROR_NOTES, REDIRECT_REMOTE_ADDR, etc.
Again the same syntax holds true, except that you'd reference the cgi page.