You are not logged in.

#1 2009-04-17 21:34:56

djidji
Member
Registered: 2007-02-26
Posts: 57

change 404 page on apache 2.2

i'm trying to change the default apache 404 message/page. i have changed ErrorDocument 404 in /etc/httpd/conf/httpd.conf to

ErrorDocument 404 missing.html

but i still get the default message. i have tried /missing.html /srv/http/missing.html and just about any other combination there is. but i still get the same message when looking for a file that does not exist. however http://<ip>/missing.html return the page that i want displayed. any ideas?

thanks.

Offline

#2 2009-04-19 17:21:42

Nicolae
Member
Registered: 2008-12-08
Posts: 9

Re: change 404 page on apache 2.2

A bit further down in the httpd.conf file, you'll see a line that says

# Multi-language error messages
Include conf/extra/httpd-multilang-errordoc.conf

Comment out the include and it should work. Apache uses this conf file to generate error pages in multiple languages; if you don't care about that you can probably safely comment it out. I'm sure there's a way to (safely) modify them to suit your needs, but I've never felt the need to mess with it

Offline

#3 2009-04-20 17:47:49

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,229
Website

Re: change 404 page on apache 2.2

Maybe silly question, but did you restart apache?

Zl.

Offline

#4 2009-04-20 23:01:40

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: change 404 page on apache 2.2

Yes, you will need to restart apache. `apachectl restart` is faster than using the rc script if you're concerned about availability.

Offline

Board footer

Powered by FluxBB