Httpd.conf Location on Mac on Lion and Snow Leopard

Looking for httpd.conf on Mac? Httpd.conf is the main Apache web server configuration file. This article covers where to find httpd.conf on OS X.

On Mac, httpd.conf is located in the directory /etc/apache2. This location was checked on Mac OS X Lion 10.7, Mac OS X 10.6 Snow Leopard (10.6.7, 10.6.8).

Here’s is the full path to the httpd.conf file:


If you open httpd.conf with TextEdit, you won’t be able to save the file. Httpd.conf is protected from editing by OSX, so that people don’t inadvertently damage or delete their web server config, or open up security holes. See Easily Edit Httpd.conf on Mac for how to bypass this security.

See Apache’s official configuration documentation for more information on configuring Apache.

If you’re looking for the location of the Apache logs on Mac (the access log and error log), they’re in this directory:

Tagged , , . Bookmark the permalink.

One Response to Httpd.conf Location on Mac on Lion and Snow Leopard

  1. Fabruccio says:

    On Mac OS X Tiger (10.4), httpd.conf and so are located in /etc/httpd/

Leave a Reply

Your email address will not be published. Required fields are marked *