Web Hosting Talk







View Full Version : Help with Apache!


bert
04-30-2001, 09:33 PM
Please help!

When a user creates a custom error page in CPanel like a 404.shtml, the file gets created and placed in the user directory, but it doesn't work!

Do I need to put something in httpd.conf so that the file is displayed when someone enters a missing URL?

Thanks!!!

Tim Greer
05-01-2001, 04:15 AM
Originally posted by bert
Please help!

When a user creates a custom error page in CPanel like a 404.shtml, the file gets created and placed in the user directory, but it doesn't work!

Do I need to put something in httpd.conf so that the file is displayed when someone enters a missing URL?

Thanks!!!

You can do this globally, per virtual host, or via .htaccess by use of the ErrorDocument directive.

bert
05-01-2001, 07:29 AM
Hey Thanks Tim. i got it. An entry in the httpd.conf file "ErrorDocument 400 /400.shtml" fixed them all! :)