I know it's not the first question on that subject but my purpose is slightly more specific.
I've read many discussions about it and what I understand is that semantically, according to FHS, websites should be kept in /srv
directory. What I do not understand is why Apache is using /var
as default directory and why still most people use it.
I'm perfectionist and it's really bugging me that I could have something on my server which isn't... well, perfect (I literally couldn't sleep tonight because of this...).
Basically what I want to know is if there is any practical difference between storing websites in /var
and in /srv
. I have my VPS for three days now and before that my experience with Linux and servers was really small so there are probably things I can't even imagine now that can cause problems in future. I guess if there are so many people using /var
there must be better reason than many people do this so I will do this as well.