Httpd.conf – What’s its Location on Ubuntu?

Here’s where to find the Apache 2 web server configuration file httpd.conf on Ubuntu.

Did you know that on Ubuntu, the main Apache configuration file is not httpd.conf? The main Apache config file is actually apache2.conf.

When Apache 2 reads apache2.conf, the contents of httpd.conf is included by an include directive in apache2.conf. Here’s the lines from apache2.conf that include httpd.conf:

# Include all the user configurations:
Include /etc/apache2/httpd.conf

So use httpd.conf on Ubuntu is specifically for your servers specific configuration. You may still need to want to edit apache2.conf at times, to change Apache’s configuration rather than add to it.

Httpd.conf Location

On Ubuntu, httpd.conf is located in the directory /etc/apache2. apache2.conf is also located in /etc/apache2.

Httpd.conf Location for Specific Ubuntu Versions

To ensure these locations are accurate, I’ve checked httpd.conf’s location on a number of different Ubuntu versions. The definitive article is Where is Httpd.conf’s Location on Ubuntu? at Ubuntu Gods.

Ubuntu Versionhttpd.conf Location
Ubuntu 7.04 Feisty Fawn/etc/apache2/httpd.conf
Ubuntu 8.10 Intrepid Ibex/etc/apache2/httpd.conf
Ubuntu 10.10 Maverick Meerkat/etc/apache2/httpd.conf

Additions & refinements welcome!

Tagged , , . Bookmark the permalink.

One Response to Httpd.conf – What’s its Location on Ubuntu?

  1. ben says:

    Thanks bro. You’ve confirmed my suspicion about the location of the file.

Leave a Reply

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