|
Hello All,
I am new to web site set up and design and have a question regarding what the files should look in the cPanel like when hosting more than one domain.
The web host I am currently with boasts that we are able to host up to twenty-five domains with their plan. Well, for the time being, I'd like to figure out how this can be done with only two domains.
I have one domain (website) that I haven't yet built, and another domain (website) that I have built. But I have never seen what the file situation is supposed to look like in the cPanel when you have more than one site and its files on the server.
Does each domain need to have its own public_html file so that separate "index.html" files and related files can be loaded into it? And if so, is this function taken care of by the host provider, or do I need to know what to do?
In other words, how does one go about working with more than one site on the host server? For example: I have site xyz.com and I want to upload the files for that site to my host server. I also have abc.com and I want to differentiate its files from xyz.com. How is this done at the host server level?
Initially, I thought it might work the same way as it does on my computer, so I added a separate folder for each domain name (abc.com and xyz.com) under the "home" designation on the server and tried putting all the files for xyz.com into that folder, including the public_html file. But when I went to click on the website, the site wouldn't come up completely (some pages would not show and showed only an error signal or whatnot).
So, I took all the files that I had placed in the xyz.com folder and moved them back out of that folder (including the public_html file) onto the main "home" area in the cPanel and tried accessing the site and it came up perfectly.
Since I've never seen the directory (file and folder) setup for a situation in which more than one site (domain) is placed on the same server account, I was wondering if someone here who knows could enlighten me about how this is done.
I've tried searching on google to see if I could find the answer to this question, but it is difficult to come up with a short search phrase that describes this situation, and all the results I've gotten so far do not address this situation.
I supposed what I'm asking is: If it is possible to host more than one domain on a host server (as the host I'm with claims), how is this done? Do I need to point the domains in different directions on the cPanel? And if so, does there need to be a separate "public_html" file for each domain (site) placed somewhere?
If you know where this information can be found on the internet, a link to the site or directions to such would be appreciated if you don't feel like typing out an answer.
Thanks for your time and response.
Thom
|