#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2008
    Posts
    195
    Rep Power
    7

    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

    mydomain.com 80
    www.mydomain.com 80
    mydomain.com 443

    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

    forums.mydomain.com 80

    Thanks guys!!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2004
    Location
    surfing the interwebz
    Posts
    2,410
    Rep Power
    2005
    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.

IMN logo majestic logo threadwatch logo seochat tools logo