Page 1 of 1

What's the difference between /var/www/ & /home/domain.c

Posted: Tue Mar 29, 2005 1:29 pm
by voltrader
Apache/Linux dummy posting again...

I only have one website on my server, and all files are in /var/www/domain.com/ folder, which seems to work fine.

The Webmin manual seems to think that files should go in /home/domain.com/

Which is correct?

Posted: Tue Mar 29, 2005 1:40 pm
by feyd
If I remember correctly, /home is a symlink to your user's root folder.. although I could be way off..

Posted: Tue Mar 29, 2005 1:47 pm
by timvw
imho data for websites belongs in /var/www ;)
but you also want each user to have her own data in her homedirectory.

http://www.tldp.org/LDP/Linux-Filesyste ... l/var.html
http://www.tldp.org/LDP/Linux-Filesyste ... /home.html


that is why you will usually see a

/var/www/
with + site1 (symlink to /home/userx/site1)
+ site2 (symlink to /home/userx/site2)
+ ...

Posted: Tue Mar 29, 2005 1:50 pm
by voltrader
Sheesh, I now long for Plesk.

Webmin is just not intuitive to me. Time to post in the jobs section... :lol: