views:

108

answers:

3

Suppose there are a.com,b.com,how to host them both with the same IIS?

EDIT

It's not hello.domain.com and goodbye.domain.com,but two totally different domain names

A: 

Define multiple "Web sites" (as much as desired amount of virtual hosts), then for each web site, right click > properties > "web site" tab > "Advanced" button on "IP adress" row and there define your virtual hosts in "Host header value" field

Olivier BOISSIN
How to define "web sites"?Can you be more specific?
Mask
+1  A: 

You should look at creating multiple websites and using different host headers. Note if you are developing on Windows XP then you can only host 1 website (without using a tool downloaded from the internet).

Refer to these articles:

http://support.microsoft.com/kb/190008 http://www.visualwin.com/host-header/

Note: This question is better asked at ServerFault.com :)

Kane
@Kane,ty.See my update,will it still apply?
Mask
Yep it will still apply. Remember that a domain name is translated into an IP address. Using Host Headers is how you can host multiple web sites from the same IP address and different domain names. Hopefully this will make sense.
Kane
A: 

i'm going completely off of memory. but what Oliver means (i believe). is in IIS. you click to create new website. name it whatever you want. in the properties section you will want to click on the tab that will show host names. Probably will also show text for multiple identies. leave IP address as all unassigned. and put in the domain name you want to answer. this can be my.domain.com or just domain.com or domain.local or whatever.

Do that for each website. Also in the properties you will need to select the domain's source files (which point to directories on the server's harddrives).

example for older iss 4 and 5

Chasester