August 5th, 2012, 05:26 AM
IIS host header (bindings) question
Hi, i have a question regarding the host headers or bindings in IIS.
I have a website,
mydomain.com and have added the bindings
my question is, i host the DNS records for the domain too,
If i add the dns record forums.mydomain.com is there a way i can bind this to a EXISTING site or directory within a site. Instead of having to create a whole new site.
so if i have the website MYDOMAIN in IIS, and a subdirectory forums with the contents for the forum, how can i add the binding
August 5th, 2012, 11:33 AM
Under IIS you can set the host header value to the necessary assignment and have it bind to port 80. For example, the value you would use is forums.mysite.com with a binding on port 80. Then in the "basic settings" section you would just want to make sure it points to the proper physical path (i.e., c:\inetpub\wwwroot\mysite\forum). This is assuming you've created a new "site" in IIS and want to go that route.
If it's the same physical site on your server, you could just add an A record to your public DNS info point forums.mysite.com to the proper IP address (extneral). This will route them to your main site; which I assume would have a "forum" hyperlink on it somewhere.
Hope this answers your question.