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 use the following command to install Apache server:

sudo apt-get install apache2

The installation process seems to have completed without any problems. When I point my browser to localhost:80, the following message comes (which tells the server is properly running)

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

Now my problem is, where the server is installed in my machine? Where is the "docroot"? (I need the docroot to deploy new webpages)

I use Ubuntu 12.04 LTS

share|improve this question
up vote 1 down vote accepted

Apache stores its VirtualHost files in /etc/apache2/sites-available/. Just after installation, only the default sites are there.

To find out the document root of the default site:

grep DocumentRoot /etc/apache2/sites-available/default

This usually yields the the following docroot (which you are looking for):

DocumentRoot /var/www
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.