At 11:16 AM 6/8/2004, you wrote:
>> I know you can use host headers with IIS to serve 2 domains
>> with one IP. Can you map a subdomain to the same IP as the
>> root domain entry, and have the same IIS web site/application
>> server the same files for both domain names? I assume this is
>> the default behavior.
>>
>> For example
>>
>> DNS entry: www.mydomain.com = 123.45.678.99 DNS entry:
>> sub1.mydomain.com = 123.45.678.99
>>
>> Will IIS just serve the same pages, regardless of the
>> requested host name, because they are mapped to the same IP?
>
>
>It's worth pointing out that this doesn't have anything to do with
>subdomains. I'm pretty sure that you can specify whatever host header string
>you like within IIS, and as long as a request to the IP address of the
>virtual server contains a Host header with that string, IIS will process it.
>For example. I could create a host header string within IIS: "foo.bar.baz",
>and as long as any HTTP request contained the line "Host: foo.bar.baz", IIS
>would respond normally. Of course, most nameservers won't know what to do
>with a "baz" TLD, so you probably wouldn't want to do that in real life.

Gotcha. Most of the docs as MS were configuring different hosts to feed off the same IP. I dig deeper and found the docs on giving 1 IIS virtual site multiple identities. I have to say, MS has done a good job of enhancing their search and organizing KB articles!

Thanks for your help, Dave.

--
Alex Sherwood

>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>phone: 202-797-5496
>fax: 202-797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to