Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have been trying to setup virtual host on apache2. Most of the answers I have seen have been including steps which include uncommenting the include line in httpd.conf, but my httpd.conf file is empty. I installed my apache by using "sudo apt-get install apache2".

share|improve this question
add comment

1 Answer

Apache Virtualhost configurations in Debian, and as an extension Ubuntu, are stored in /etc/apache2/sites-available folder. The debian tools used for managing them are a2ensite and a2dissite.

These create and delete symlinks for vhost entries in sites-available to sites-enabled.

If you'd see your /etc/apache2/apache2.conf file, the virtualhost entries are included in the very last line:

# Include the virtual host configurations:
Include sites-enabled/
share|improve this answer
add comment

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.