Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

Andy

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

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.

share|improve this answer

Your Answer

 
discard

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.