IIS7 binding to subdomain causing authentication errors
- by Tommy Jakobsen
I'm trying to bind a IIS web site to a subdomain, which is causing authentication errors. First I'll explain what I've done to set it up. This is the fist time I do this, so please correct me if I'm wrong.
The web server is a stand-alone Windows Server 2008 R2 x64, running IIS7 with .NET Framework 4.
I have the following A-records, pointing to my server:
server.mydomain.com
*.server.mydomain.com
So all subdomains of server.mydomain.com points to the server. In IIS7 I have a web site on port 8080, with a virtual directory (named virtual) that is using Windows Authentication.
I have one binding on the web site pointing to all unassigned IP addresses, port 8080 and having a host name of sub.server.mydomain.com.
Now, shouldn't I be able to access the virtual directory through:
http://sub.server.mydomain.com/virtual
That is not working. However, I can access it through:
http://sub.server.mydomain.com:8080/virtual
But, it won't let me authenticate using a Windows account (Server\Username). A windows account that I can authenticate with, when accessing the site through http://localhost:8080/virtual.
What am I missing here?