Ubuntu – Can’t find httpd.conf on Ubuntu

apache-2.2httpd.confUbuntu

I have installed apache and going to configure the apache settings in Ubuntu 12.10, but I can't find the httpd.conf file (I have searched for it, but it seems I don't have the file in my system).

Can I create the file (will that work) or is there another solution?

Best Answer

On Ubuntu the main configuration file is

/etc/apache2/apache2.conf

However it's also split out into different files that can be found in

/etc/apache2/conf.d
/etc/apache2/sites-enabled
/etc/apache2/mods-enabled

There are also

/etc/apache2/sites-available
/etc/apache2/mods-available

You should probably spend some time reading the documentation to get an idea how Ubuntu organises the apache configuration.