I'm currently having some issues with configuring host headers using IIS 7.5 (w2008r2).
The bindings/configurations are as follows:
siteA
http www.sitea.com port 80 https port 443 --- the certificate used is issued for www.sitea.com
A rewrite rule to redirect all attempts to connect over http to https.
siteB
http dev.sitea.com port 80
The A record for dev.sitea.com currently resolves to the server's IP, as expected.
The issue is that when you attempt to connect to dev.sitea.com, it redirects you to www.sitea.com.
Removing the rewrite rule and https binding from the config for siteA had no effect.
I'm unsure of where to go from here to continue troubleshooting. Any help is appreciated!