Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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'm setting up ubuntu w/ apache for some web development and I'm wondering where you place the web sites themselves (/home, /var)? I will host multiple domain using vhosts.

I know that there is no standard for this, but I'm wondering how experienced server admins reason when chosing between /home or /var wrt security, permissions, easy of use, etc.

share|improve this question
up vote 0 down vote accepted

The default locations are these:

The configuration files for the vhosts are under /etc/apache2/sites-available; create a new file here then run a2ensite sitename to enable the config.

The web site's content files themselves are under /var/www.

share|improve this answer
So /var/www is officially default for ubuntu? – LawrenceOfLabia Mar 13 '11 at 18:16
Yup - you'll see that the default index.html page from the install is located there. – Shane Madden Mar 13 '11 at 18:21
Great, thank you. – LawrenceOfLabia Mar 13 '11 at 18:29

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.