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.

As we know there are multiple locations such as :

/var/www/vhosts

/home/user

When should we use each of the above (or other) locations? What is the difference between them?

share|improve this question
add comment

1 Answer 1

This is partly covered under the FHS for Linux. http://www.pathname.com/fhs/

/home/user/* is really only appropriate when a single account on the system is going to be modifying content.

Other shared locations like /var/www/vhosts and /srv/www are more appropriate when many users will be modifying content.

It is not entirely uncommon to have the content exist in one of those shared locations and have symlinks to or from the users home directory.

share|improve this answer
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.