Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

On Ubuntu the main configuration file is


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


There are also


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

share|improve this answer
i cant find my /etc/apache2 directory – bubakazouba May 11 at 7:02

You need to be looking in /etc/apache2 for Apache configuration on Ubuntu.

config is spread over a few files. Including /etc/apache2/apache2.conf and /etc/apache2/httpd.conf

Virtual Host definitions should be placed in /etc/apache2/sites-available/sitename.conf and turned on/off with

a2ensite sitename.conf
a2dissite sitename.conf

You may find the Ubuntu community apache documentation helpful: Ubuntu community apache info


share|improve this answer
I have looked in /etc/apache2 but the only .conf files in there is apache2.conf and ports.conf. Sigurd – Sigurd Feb 5 '13 at 13:51
httpd.conf has nothing mandatory. – Heis Spiter Feb 5 '13 at 13:52
I am trying to install a software, and the installation instruction tells me to incude some lines in the httpd.conf file. – Sigurd Feb 5 '13 at 13:55
If you feel safer putting them there, do. BUT, ensure your apache2.conf file contains a Include httpd.conf directive. – Heis Spiter Feb 5 '13 at 14:35
Allright, thanks. – Sigurd Feb 5 '13 at 15:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.