Web Hosting Forum | Lunarpages

Author Topic: httpd.conf file and 404 error page  (Read 9870 times)

Offline aiko

  • Spaceship Captain
  • *****
  • Posts: 122
httpd.conf file and 404 error page
« on: July 13, 2006, 01:00:23 PM »
Hi all :D

Where should i place the "ErrorDocument 404 /missing.html" code in my httpd.conf file ?

Should i place it between the <Directory /home/*/public_html></Directory> tags and remove the #?
Where should i place it?

Code: [Select]
#<Directory /home/*/public_html>
#    AllowOverride All
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS PROPFIND>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS PROPFIND>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>


Thanks in advance for your help :help:

Aiko

Offline perestrelka

  • Master Jedi
  • *****
  • Posts: 1397
Re: httpd.conf file and 404 error page
« Reply #1 on: July 14, 2006, 11:57:46 PM »
Hello Aiko,

According the apache manual (http://httpd.apache.org/docs/1.3/mod/core.html#errordocument), the ErrorDocument directive is legal in these contexts: server config, virtual host, directory, .htaccess.

This means that you may place ErrorDocument directive between those Directory tags and uncomment them. This way you'll setup ErrorDocument for each directory mapped by wildcard /home/*/public_html.

Kind Regards,
Vlad Artamonov

 

Share |