Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 26, 2008, 06:28:32 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: httpd.conf file and 404 error page  (Read 1357 times)
aiko
Spaceship Captain
*****
Offline Offline

Posts: 122


« on: July 13, 2006, 02:00:23 PM »

Hi all Very Happy

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:
#<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
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 985



« Reply #1 on: July 15, 2006, 12:57:46 AM »

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.

Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM