In IIS you can host multiple Web sites on a single server with the same port number and a single IP address using Host Header. By adding a unique host header to each Web site, you can map more than one Web site to a single IP address.
In IIS 6.0,
To add a host header entry for a Web Site in IIS 6.0.
- Right click Web Site (Default Web Site in our case) and click on Properties
- Click Advanced… button in the Web Site tab
- Click on Default and click Edit…
- Type the host header in the text box (dotnetscraps.com in our case)
In IIS 7 / 7.5
To add a host header entry for a Web Site in IIS 7 / 7.5
- Right click the Web Site (Default Web Site in our case)
- Click Edit Bindings...
- Click on http and click Edit...
- Type the host header in the text box (dotnetscraps.com in our case)
Hope this helps,
Vivek Kumbhar
Quote of the day:
If we were not all so interested in ourselves, life would be so uninteresting that none of us would be able to endure it. - Arthur Schopenhauer