httpd serving wrong DocumentRoot

Aleksandar Milivojevic amilivojevic at pbl.ca
Thu Mar 17 17:54:48 UTC 2005


Mark Weaver wrote:
> Aleksandar Milivojevic wrote:

>> If you installed PHP from the RPM package, you should have file 
>> /etc/httpd/conf.d/php.conf.  It contains corrects AddType directive.  
>> In that case, you *do not* need to edit main httpd.conf file.  You 
>> might need to restart httpd service (/etc/init.d/httpd restart) for 
>> changes to take effect after you install PHP.
> 
> What?... :P ya learn something new about FC3 every day. Or maybe its 
> just an Apache2 thing. I wasn't aware of that; frankly I never thought 
> to look for that specific config file. huh... !

I think it's the Red Hat thing.  There's "Include conf.d/*.conf" 
statement in default httpd.conf file.  Wildcards in Include statement 
are supported since Apache 1.3.27 and 2.0.41 respectively.

Basically, all Apache modules (php, mod_ssl, perl, and so on) do not 
modify httpd.conf file anymore.  They drop their part of configuration 
into conf.d directory.  For example, SSL is now handled by 
conf.d/ssl.conf (part of mod_ssl package).  There's also 
conf.d/welcome.conf that kicks in if you don't have index.html page in 
your DocumentRoot.

-- 
Aleksandar Milivojevic <amilivojevic at pbl.ca>    Pollard Banknote Limited
Systems Administrator                           1499 Buffalo Place
Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7




More information about the fedora-list mailing list