Question : Create subdomain in iis7 w2008 server

I'm trying to create a subdomain of our main site in iis7
e.g.
www.mainsite.com
www.test.mainsite.com

We have multiple sites with a shared IP address configured using host headers.

To create the subdomain I think I need to create a DNS entry which is linked to the main site entry
And then create the site in iis (edit bindings)

But I'm not sure about the details

Any advice much appreciated.

Answer : Create subdomain in iis7 w2008 server

Ah so you want a staging server. Here is what you need to do.

1 IP
2 DNS entries
2 Sites directories
2 Sites in IIS with unique bindings.


HOW TO:
1.  Create a Forward lookup zone.
  DNS Manager
  Right click on mainsite.com under Forward Lookup Zones
  Click New Domain...
  Type "test"
  Right click on the domain folder "test"
  Click new Host...
  Name = www IP is where you want it to be sent too.

2. Create a new WebSite in IIS.
 
3. Add the www.staging.domain.com DNS to the Binding.
  1. Go to IIS Manager
  2. Select your “Web Site” on the left pane.
  3. In the "Actions" pane on right hand side, click on "Bindings..."
  4. Click ADD.
     * You may have 1 binding depending on your urls already.
        change
                  a) Type (http) - host Name () -  Port (80) - IP address (*)
        to
                  a) Type (http) - host Name (www.staging.domain.com) -  Port (80) - IP address (*)

4. Reconfigure main site.
  1. Go to IIS Manager
  2. Select your “Web Site” on the left pane.
  3. In the "Actions" pane on right hand side, click on "Bindings..."
  4. Click ADD.
     * You may have 1 binding depending on your urls already.
        change
                  a) Type (http) - host Name () -  Port (80) - IP address (*)
        to
                  a) Type (http) - host Name (www.domain.com) -  Port (80) - IP address (*)

NOTE: for bindings, you only want 1 listed and no wildcards.


Cheers,
Hades666
Random Solutions  
 
programming4us programming4us