PDA

View Full Version : Some nice Ubuntu-themed Apache ErrorDocuments



avahi
May 24th, 2009, 09:15 PM
The default Apache errordocuments put me to sleep, so I've decided to make some nice Ubuntu-toned replacements for my Ubuntu servers.

They are colored by a CSS stylesheet, so it's easy to change the colors for all of them at once.

-----
How to use:

1) Drag the "errordocs" folder in the attached .zip file to your site's root directory

2) In your apache2.conf, add or replace the following lines:


ErrorDocument 401 /errordocs/401.html
ErrorDocument 403 /errordocs/403.html
ErrorDocument 404 /errordocs/404.html
ErrorDocument 410 /errordocs/410.html
ErrorDocument 414 /errordocs/414.html
ErrorDocument 418 /errordocs/418.html
ErrorDocument 500 /errordocs/500.html
ErrorDocument 503 /errordocs/503.html
ErrorDocument 509 /errordocs/509.html

3) Restart Apache

Enjoy :)
Free to use under GPLv3.

mr.propre
May 24th, 2009, 09:21 PM
It's more user friendly to give people direction's instead of just giving them an error message. Like a search box or your default webpage with a small error message.

Just my €0.02

*spamMode*
Like this: http://www.stijn-dhaese.be/blog/2009/04/nothingtofindhere/
*/spamMode*

billgoldberg
May 24th, 2009, 10:00 PM
It's more user friendly to give people direction's instead of just giving them an error message. Like a search box or your default webpage with a small error message.

Just my €0.02

*spamMode*
Like this: http://www.stijn-dhaese.be/blog/2009/04/nothingtofindhere/
*/spamMode*

I agree.