From: rockdale on
Thanks, Now I understand.

On Sep 4, 10:55 am, "Anthony Jones" <AnthonyWJo...(a)yadayadayada.com>
wrote:
> "rockdale" <rockdale.gr...(a)gmail.com> wrote in message
>
> news:b01e7a92-19f5-405e-aff7-101baeca1518(a)i20g2000prf.googlegroups.com...
>
> >> Are you aware that IIS can differentiate between websites based on the
> >> host
> >> header alone?  IOW, multiple websites can be served on the same IP
> >> address
> >> through the same port.
>
> > I did not know about. I thought we need to assign either different IP
> > address or open different port for each website.
> > Can you be more specific or point me to related web resources?
>
> Lets say you had the websites  alpha.yourdomain.com; beta.yourdomain.com;
> gamma.yourdomain.com.
>
> You would have alpha, beta, gamma configured in DNS to point to your web
> server. If you manage the domain yourself you would use a CNAME entry to
> point each at the servers computer name.  If someone else manages the DNS
> server for yourdomain just have them create A records pointing all to the
> same IP addresss, that of your machine.
>
> In IIS create a new website, the wizard wants a description call it 'Alpha'.
> On the next wizard page leave IP address set to All Unassigned and port to
> 80 however enter alpha.yourdomain.com in the host header box.  The next page
> enter the file path to Alphas web files. Complete the wizard.
>
> Repeat for Beta and Gamma.  Now a visitor tohttp://alpha.yourdomain.com/
> will be directed to the correct web service.
>
> Note don't re-use the default site, disable it.
>
> --
> Anthony Jones - MVP ASP/ASP.NET