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

eg

/home/ /home/

or

/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.

Thanks

share|improve this question

migrated from stackoverflow.com May 6 '11 at 5:52

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

2 Answers 2

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

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

Your Answer

 
discard

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