http://www.xenocafe.com/tutorials/linux ... /index.php
Halfway down it says: "Creating the Web Site Directory Structure"
"Our web site directory schema should be simple yet structured. The common approach would be to use /home as the root but we won't be doing that. Our web site parent root will be /www and from within it create a directory for each domain we'll be hosting."
Before I continue and take his advice, is this the right way to do things? I am sometimes wary of tutorials in case they are out of date, or plain incorrect, and I know that the previous server I had (which was set up by Qualiteam, who make X-Cart, so I presume they were doing things right) had all the websites stores in directories in the /home directory.
I have changed the DNS for all the sites I want on this server, so they point to the server's IP address, and they are all working correctly. (And just to note, for almost all of them, the DNS seemed to update instantly - I thought it normally takes hours? Or did I just do it at the 'right time', when the DNS were being updated?)
Also, in the tutorial it says to configure virtual hosts like this:
CustomLog logs/access_log combined
Is that DocumentRoot okay? Or should it be /var/www?
My server (which my first, main site is already working with), is structured
I'm not sure how to make it use /var/www as the 'root' (sorry, that's not the right word but I don't know how else to describe it) of all the sites I will have, which will be like this, presumably:
Many thanks in advance for any help you can give, I'm slowly learning it all, but don't want to do things the wrong way and then end up having to change a load of stuff in the future.