You are not logged in.
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.htmlbut 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
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.confComment 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
Maybe silly question, but did you restart apache?
Zl.
Offline
Yes, you will need to restart apache. `apachectl restart` is faster than using the rc script if you're concerned about availability.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline