Hosting multiple sites on the same IP and port using IIS

Recently I came across an interesting feature which I hadn’t seen before, I used to think that in IIS you can only host one website per IP address and port. But apparently you can host multiple websites on the same IP on IIS as long as the sites have unique domain names. The key to set it up is to use the host header value when setting up a website, the host header value can be specified at the time of setting up the webiste or from the website properties from the “Web Site” tab and then clicking “Advanced” next to the IP Address and then edit the ip settings to bring up a dialog that allows you to specify the host header value.

IIS Hot header value configuration

This way you can setup two independent websites on the same IP and IIS will use the incoming request url domain to decide which website to use to serve the request.

1 Comment

 Add your comment
  1. I would like to host multiple site on my server offline for now. For Example if I type 192.168.26.14\woodner that site would come up if I type 192.168.26.14\mautner the maunter site would come up. Is this possible using this techneqe?
    Thanks,
    Ray

Leave a Reply

1 Trackback

  1. How is a subdomain passed to the webserver? (Pingback)