Re: httpd serving wrong DocumentRoot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>    Pollard Banknote Limited
Systems Administrator                           1499 Buffalo Place
Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux