I am trying to have multiple websites hosted on one server, but do not know for sure if I should create the Virtual Hosts for each website contained in one file or have each of them in their own separate files.
All help is appreciated.
Webmasters Stack Exchange is a question and answer site for pro webmasters. It only takes a minute to sign up.Sign up to join this community
This is really personal preference. There are pros and cons to each. By putting them all in one file you have one place to look for configuration information. BY putting them in separate files, with names based on the domain, it is easy to do an ls (assuming UNIX/Linus) and see the domains that are hosted on the server.