Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I view the "Websites" section in the OSX Server app, I am able to manage what appear to be virtual hosts. However, when I go to check Apache's vhosts configuration, there doesn't seem to be anything configured. Is there some kind of magic going on here, or are the changes made via the Server app affecting files somewhere else? Can anyone shed some light on how OS X manages the built in Apache installation?

share|improve this question
up vote 6 down vote accepted

Since you mention Server App, I assume your OS X is Mountain Lion. The actual apache config is at the following location


Virtual host config is in


You are probably looking at /private/etc/apache2/ or /etc/apache2/, which is not being used.

share|improve this answer
Weird - in my case the /private/etc/apache2/httpd.conf is being used (I made some changes, added a module) and the module is now loading and those changes are reflected. Could it be using both somehow (doesn't make sense, but can't think of a better explanation)? – Wilco Nov 7 '12 at 17:52
Depends on if the include statement(s) in /Library/Server/Web/Config/apache2/httpd_server_app.conf pointing to the other directory is/are enabled. In Mountain Lion, by default httpd_server_app.conf only include the language config from /private/etc/apache2. Maybe you enabled extra lines long time ago. Additionally, Apple keep changing the underline configuration and file location from version to version. – John Siu Nov 7 '12 at 19:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.