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.


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.

  • 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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