Re: httpd serving wrong DocumentRoot

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

 



Aleksandar Milivojevic wrote:
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.


interesting... that would explain a few things I've seen over the past few months.


--
Mark
-----------------------------------------------------------
Paid for by Penguins against modern appliances(R)
Linux User Since 1996
Powered by Mandrake Linux 8.2, 10.0 & RH Fedora Core 3


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

  Powered by Linux