> 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?

The short answer is yes, you can do this with IIS. If you don't specify any
host header requirements at all within IIS, any requests to that IP address
will be handled the same way by IIS. Alternatively, you can specify multiple
host headers for a single IIS virtual server.

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.

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