Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 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

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

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.