Virtual hosting with IIS (Internet Information Services)

Web hosting
NOTE: This article is specific to IIS 6.0 (Windows XP / Server 2003) and earlier
Other versions of this article are available for:
IIS 7.0 (Windows Vista / Server 2008) and later

NOTE: Only IIS versions for Windows Server and Windows Vista support multiple web-sites as described below.
If you are using Windows 98, Me, NT4 Workstation, Windows 2000 Professional, or Windows XP please see reference article below instead.

"Virtual hosting" means hosting multiple web-sites with different domain names on the same IP address.

This procedure is also described in Microsoft KB article Q190008

From the "Internet Information Services (IIS) Manager" window, right click on a web-site, and select "Properties":

Image1.png

In the web-site Properties dialog, click the "Advanced..." button:

Image2.png

 In the "Advanced Web Site Identification" dialog, select the first "identity", and click the "Edit" button:

Image3.png

Enter the web-site domain name in the "Host Header Name" field:

Image4.png

Click the OK button in all the dialogs to save your changes.

Create additional web sites the same way.

REFERENCES:
For more information, please see the following knowledge base articles:

KB Article Virtual hosting with IIS / PWS using a single web-site
KB Article Can I use Simple DNS Plus to make my web-server access different directories / files on my computer for different domain names? (Sometimes referred to as "virtual hosting")

Add Feedback