Did you know that on Ubuntu, the main Apache configuration file is not
httpd.conf? The main Apache config file is actually
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
# Include all the user configurations: Include /etc/apache2/httpd.conf
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 is located in the directory
apache2.conf is also located in
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 Version||httpd.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!