Suppose, I have a couple of websites hosted on a dedicated server (Windows 2003 with IIs 6.0) and the issue is that with one IP address (in other words - Static/Dedicated IP address), I was able to reach only one of the websites.
There are three options to host multiple websites in IIS :
- Create websites, each assigned an IP - The downside of this option is that you will have limited IPs with you !!
- Create websites, each listening on different port numbers.For example, http://mysite1.com and http://mysite2.com:8888 - The downside of this approach is that users have to remember the port number of the site that they are interested in!!
- Using Host-Headers - This option is the "best" that solves the problem at hand.
- Create multiple websites in IIS
- Right click on a website, choose "Properties".
- On the tab page named "Website" click "Advanced ..." and here you can add a host header (say, mysite2.com) and let all the websites have the IP as "All Unassigned" and the port 80.
For more details, please visit http://www.iisanswers.com/Top10FAQ/t10-hostheaders.htm

0 comments:
Post a Comment