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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

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

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

If I remember correctly, /home is a symlink to your user's root folder.. although I could be way off..
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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)
+ ...
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

Post by voltrader »

Sheesh, I now long for Plesk.

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