How can I tell which config file Apache is using?

Posted by Claudiu on Server Fault See other posts from Server Fault or by Claudiu
Published on 2010-06-26T15:37:53Z Indexed on 2014/05/28 3:33 UTC
Read the original article Hit count: 499

I'm trying to set up virtual hosts on Mac OS X. I've been modifying httpd.conf and restarting the server, but haven't had any luck in getting it to work. Furthermore, I notice that it's not serving files in the DocumentRoot mentioned in httpd.conf (Libraries/WebServer/Documents), but in a different directory (/usr/local/apache2/htdocs). I don't see this folder mentioned anywhere in httpd.conf. Furthermore, PHP works, but the "LoadModule php5_module" line is commented out. This makes me think it's using another .conf file. How can I figure out which config is actually being loaded?

Update: I just deleted that httpd.conf and apache behaves the same after restart, so it definitely wasn't using it!

© Server Fault or respective owner

Related posts about apache-2.2

Related posts about macosx