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.

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

2 Answers 2

up vote 1 down vote accepted
/etc/apache2/sites-available

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

 
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.