Web Connection
Can multiple default (root) websites be run on multiple hostnames?
Gravatar is a globally recognized avatar based on your email address. Can multiple default (root) websites be run on multiple hostnames?
  Jeff L Roberts
  All
  May 23, 2022 @ 03:05pm

I am not sure if this is an IIS question, a Web Connection, or both question. I'd like to be able to run one application at app1.mydomain.com and another app at app2.mydomain.com by pointing both dns records at the same server. Is this possible? If so what kind of configuration do I need to do in IIS and/or Web Connection? Many thanks in advance! -Jeff

Gravatar is a globally recognized avatar based on your email address. re: Can multiple default (root) websites be run on multiple hostnames?
  Rick Strahl
  Jeff L Roberts
  May 24, 2022 @ 10:20am

Yes that works fine and is a common way to do multi-tenant Web applications.

Your application can then look at the domain name to determine which customer/client/context you are accessing based on the domain.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Can multiple default (root) websites be run on multiple hostnames?
  Jeff L Roberts
  Rick Strahl
  May 24, 2022 @ 12:44pm

I probably should have clarified. I want to run two (or more) web connection projects that way, not route inside of one project. Is that possible? If so, do you still leave the field blank for default site when creating each project? Is there some documentation for IIS that explains configuration?

Gravatar is a globally recognized avatar based on your email address. re: Can multiple default (root) websites be run on multiple hostnames?
  Rick Strahl
  Jeff L Roberts
  May 24, 2022 @ 01:23pm

You can do that too, but that seems pretty obvious? You can run multiple applications on a single machine at the same time. How you route to it really makes no difference - whether you use a virtual directory or Web Site with host name DNS routing makes no difference.

So yes that definitely works.

+++ Rick ---

© 1996-2024