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

Where to find virtual host details and document root in Ubuntu Hardy?

For example, in Centos both information is available in httpd.conf file, whilst there is also a httpd.conf file found in Hardy, virtual hosts and document root information is not available.

Thanks for help.

share|improve this question
up vote 1 down vote accepted

and use a2ensite to enable sites which symlink them to: /etc/apache2/sites-enabled.

All you have to do is create a file and then enable the site, restart apache2 and the site should be enabled and working so long as you entered the virtual host configuration properly.

share|improve this answer
Thanks for this. – April Apr 26 '10 at 2:41
no problem. everyone starts somewhere. – David Rickman Apr 26 '10 at 10:53

Sorry but I believe the response given above response is rather incomplete.

Documentroot is under: /var/www That is where your index.html or link thereto should be placed.

TEST: If your apache2.2 is properly installed with default settings, and you type-in http://localhost/ in your browser, by default you should get a page with:

It works! This is the default web page for this server. The web server software is running but no content has been added, yet.

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.