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.

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
add comment

1 Answer 1

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
add comment

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.