Link to home
Start Free TrialLog in
Avatar of thewing
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
Avatar of gizmola
gizmola

Recheck your use of the ErrorDocument directive.  This should go in your httpd.conf file The syntax should be:

ErrorDocument 404 /pathtyournotfound/notfound.html (relative)

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.
ASKER CERTIFIED SOLUTION
Avatar of fauzdar
fauzdar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial