Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 5 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

/Library/Server/Web/Config/apache2/

Virtual host config is in

/Library/Server/Web/Config/apache2/sites

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

 
discard

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.