Hosting Multiple Domains works but also appear as part of the main domain
carlocarlo said 1 year, 1 month ago:
I have followed the following thread to host multiple websites on my (Deluxe) hosting account to success:
http://support.godaddy.com/help/article/5399?pc_split_value=3
Now I can go to different websites and they appear so (an example):
http://www.hello.com (that happens to be the main website with hosting account)
New added website (domain) to that hosting account (example):
HOWEVER, if I go to this address:
http://www.hello.com/sun (this happens to be the folder where I put http://www.sun.com).
I also see the (new) http://www.sun.com website and I don’t want that account to be associated the my main http://www.hello.com account.
How do I solve this? I want each of those sites to be on their own.
Thanks
adamr said 1 year, 1 month ago:
@carlocarlo
If you do not want to be able to access your aliased domains’ sites through the primary domain, you’ll want to setup a non-web accessible root. This article will show you how:
Setting up a Non-Web Accessible Root Folder
Let us know if you have any trouble!
-Adam
carlocarlo said 1 year, 1 month ago:
I read the article and the only doubt I have at the moment is how can I make my root folder the safest? – How can I create a new virtual directory off of the site root and restrict its access?
The article (at the end) says:
“After you update your account in this way, it is important to remember that the root folder of your site still allows access to anonymous users, but not through a Web browser. It is possible that your site may allow users to access files stored in these directories. If you would like folders to be more secure, create a new virtual directory off of the site root and restrict its access.”
adamr said 1 year, 1 month ago:
@carlocarlo
This section is only applicable to Windows hosting plans. The way Windows courtesy redirects work may potentially lead the root directory accessible. If you are working with a Windows hosting plan, you’ll want to set each of your directories associated with a domain as an ‘Application Root’.
Customizing IIS Settings on Your Windows Hosting Account
-Adam
carlocarlo said 1 year, 1 month ago:
Hi Adam,
If using Linux (that’s the server we have in all our hostings) we are protected from that problem then?
It’s as easy as following the instructions on “Setting up a Non-Web Accessible Root Folder”?
That would be good news.
Thanks!
adamr said 1 year, 1 month ago:
@carlocarlo
Correct. The snippet of text you previously referred to is geared towards Windows based hosting plans only.
-Adam
carlocarlo said 1 year, 1 month ago:
Great – thanks Adam.
3 min expected wait time