Subdomain not hitting new site?
Posted
by
Abe Miessler
on Server Fault
See other posts from Server Fault
or by Abe Miessler
Published on 2012-12-06T21:20:14Z
Indexed on
2012/12/06
23:05 UTC
Read the original article
Hit count: 282
I have an existing site at my.site.com
and I would like to setup a staging subdomain (staging.my.site.com
). I have my DNS setup and directing staging.my.site.com
to my server, but for some reason the Web Site I created in IIS for it is not being hit. Instead when I go to staging.my.site.com
it takes me to the original site.
The site I created in IIS has a home directory that is totally different from the regular sites home directory. I have added one host header with the following information:
IP Address: (All Unassigned)
TCP port: 80
Host Header Value: staging.my.site.com
I was under the impression that with the setup I described above hitting staging.my.site.com
through a web browser would bring up the staging site, but it does not. Can anyone see what I am doing wrong?
UPDATE:
One thing I noticed is that in my A record I am mapping to the IP Address ( lets say 1.1.1.1
for this example). In the host headers for the main site (my.site.com
) it has 1.1.1.1
as an entry. Is this normal? Could it cause the problem I am talking about?
© Server Fault or respective owner