Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 am re-organising some web servers, the majority of which are running the Centos linux distro.

Each of these servers has multiple sites being served using virtual hosts.

Is there a "correct" place that the source for each of these sites should be kept?

The two main options seem to be in /home and /var/www


/home/ /home/


/var/www/ /var/www/

Whilst I know it doesn't make a massive difference, the aim of re-organising these servers is to get everything standardised so I would like to know of any reasons as to why one of these may be preferred over the other or if there is a "normal" way of doing it.


share|improve this question

migrated from May 6 '11 at 5:52

This question came from our site for professional and enthusiast programmers.

According to the File System Hierachy standard /srv/www would be correct. It is for data that is served by the system.

share|improve this answer
Not necessarily /srv/www specifically, but certainly somewhere under /srv. – Ignacio Vazquez-Abrams May 6 '11 at 6:18

I typically use /var/www/html for single sites, or /var/www/sitename for multiple site setups. It's fairly consistent and CentOS/RHEL points you in that direction...

share|improve this answer
installing apache on centos will defaultly use /var/www/html. – GruffTech May 8 '11 at 5:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.