Web Hosting Talk







View Full Version : Apache's message


mithilesh
03-18-2002, 02:04 PM
How can I customize the apache message which displayed when the page not found.

WebmastersHost
03-18-2002, 02:07 PM
Are you using a control panel?

Do you mean server-wide?

If your using CPanel you can do this for each domain in the control panel GUI.

jrimmer
03-18-2002, 02:12 PM
Yes, it's a simple matter of setting the Error document and then ensuring that every host, virtual or othersize, and the proper document.

For example, with my setup I have ErrorDocument set thusly:
ErrorDocument 404 /http/404.php

And then I ensure that every virtual host has the proper directory/document structure.

As for setting this up with Control Panels I have no idea.

mithilesh
03-18-2002, 04:27 PM
ErrorDocument 404 /http/404.php where should I put this line .

jrimmer
03-18-2002, 04:34 PM
In the Apache config file, usually <apache install dir>/conf/httpd

Here's the reference page in the Apache documentation: http://httpd.apache.org/docs/mod/core.html#errordocument