The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Web Hosting
> Web Hosting
|
Pointing one or more domains to same server?
Discuss Pointing one or more domains to same server? in the Web Hosting forum on Dev Shed. Pointing one or more domains to same server? Web hosting forum discussing tips on the best web hosts and information about hosting companies. If you want your own website, you will need web hosting.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

May 13th, 2011, 05:42 AM
|
|
|
|
Pointing one or more domains to same server?
Hello,
I have a client who's domain and hosting is done with another "local" company. This company hosts the website on a server which does have a public IP. However I noticed that when I enter http://myclientdomain.com and then view source; the source has a frame tag which loads the website from http://localcompanydomain.com/hosting/myclientname/
Everything works fine on the website. However in my opinion this creates some problems in terms of SEO. Additionally I have some problems connecting to some social network services since these expect requests to come from http://myclientdomain.com rather then from http://localcompanydomain.com/
Therefore I was wondering; is it possible for this guy to point http://myclientdomain.com to the correct directory on his machine? rather then having it pointing to his domain?
He said he can remove the masking but that will make the site only accessible from http://localcompanydomain.com/hosting/myclientname/ which is not acceptable.
Also I cannot just drop the hosting. I did not do the agreements with this company and do not want to be seen as if trying to steal the hosting agreement (I provide hosting for my clients but do not have a physical server).
Last edited by sim085 : May 13th, 2011 at 05:44 AM.
|

May 13th, 2011, 07:59 AM
|
 |
Lost in code
|
|
|
|
Quote: | Therefore I was wondering; is it possible for this guy to point http://myclientdomain.com to the correct directory on his machine? rather then having it pointing to his domain? |
Yes, in fact it's practically trivial to do that. If he tells you he can't do it, he's either lying or incompetent - neither are good qualities for a web host. I highly recommend that you tell your client to demand that the host fix the server configuration or else move them to a better host. If you don't want to be seen as stealing the hosting agreement then don't host them yourself, go with a third party. Any $5/mo hosting company is going to provide better service than that.
|

May 13th, 2011, 08:57 AM
|
|
|
Quote: | Originally Posted by E-Oreo Yes, in fact it's practically trivial to do that. |
Removed
.
Last edited by sim085 : May 13th, 2011 at 05:43 PM.
|

May 13th, 2011, 05:41 PM
|
|
|
|
Hello again,
I sent a quick email to my domain registrar to ask them how to point a domain to a 3rd party hosting account. They sent back and told me how to edit the IP Address in the Zone File. I went on to check some of my domains and indeed the IP Address in the Zone File is the same as the one I have in my Hosting account.
Now my question is this; The IP Address points to a machine NOT TO A DIRECTORY. When I add a hosting for a domain I also define the sub-folder where the files for that domain will be placed. For example, if I have the domain myclient.com, I create a sub-folder under root named myclient and I point myclient.com to /myclient
From the Zone File the domain is pointing the hosting machine. Therefore, who (or what or where) is the addressing to /myclient directory being made? Is this something that gets configured on the host machine? Some file or database record?
.
Last edited by sim085 : May 13th, 2011 at 05:47 PM.
|

May 13th, 2011, 09:32 PM
|
 |
Lost in code
|
|
|
|
|
Mapping a domain to a directory is handled by your web server software on the web server machine.
|

May 14th, 2011, 02:06 AM
|
|
|
Quote: | Originally Posted by E-Oreo Mapping a domain to a directory is handled by your web server software on the web server machine. |
Thanks, that is important information for at this point. I'm pretty sure that this person might not know how to do this type of mapping. I think if is using IIS for hosting then such setting swould have to be configured in IIS itself. Thanks again for the info. I will search in that direction. Thanks for all the help 
|

May 16th, 2011, 06:48 AM
|
|
|
|
I found the following link. Is this what needs to be done from IIS in order to map a domain to a website?
http://jyotsna.philogy.com/2010/01/02/iis-how-to-map-a-domain-name-to-a-web-site/
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|