Replacing Mac OS Apache with macports Apache

Dan Poirier poirier at
Mon Feb 15 06:32:26 PST 2010

On Sat, Feb 13, 2010, at 07:58:51 PM, Ryan Schmidt <ryandesign at> wrote:

>> - should I set a new location for the httpd.conf file? I was using /etc/apache2/httpd.conf, the new one is located in /opt/local/apache2/conf/httpd.conf, and I couldn't find the location where this path can be set (at least I didn't see it in apachectl). 
> You cannot specify the location of the httpd.conf file. The Apple apache server simply requires the file to be located in /etc/apache2/conf, and the MacPorts apache server requires it to be in /opt/local/apache2/conf.

Just FYI, you can put the config file anywhere and pass its path to
apache using -f on the startup command line.  I guess you'd have to edit
the launchd file to implement that, or start it manually.

More information about the macports-users mailing list