Documentation
Kattare is dedicated to making your hosting experience as painless as possible.
That means making as much help and documentation available as possible.
If you have a question that you think would be helpful to have here, please
[Submit your Question].
|
|
| Category |
| Dedicated Servers |
|
Question
|
Last Modified: May 02, 2005
|
| Setting up custom Apache error documents. |
| Answer |
In our default setup, you can use the following in the /etc/httpd.conf
configuration file. If you've customized your apache install at all, you
should be aware of the location of your httpd.conf. (Note that you can also
put these in .htaccess files on a per-directory basis.) The format is
"ErrorDocument <error-code> <URL>". Most, but not all of these require a
relative URL.
ErrorDocument 400 /errors/badreq.html
ErrorDocument 401 /errors/noauth.html
ErrorDocument 403 /errors/forbid.html
ErrorDocument 404 /errors/missing.html
ErrorDocument 500 /errors/conferr.html
You can also redirect people off of your site using an external URL.
ErrorDocument 403 http://www.kattare.com/
Do not forget to restart apache after changing the config with an 'apachectl
restart'.
|
[FAQ Main]
[Submit a Question]
[Back to Category "Dedicated Servers"]
|