-2

So if I have two domains i.e. domain1.example and domain2.example, both pointing to the exact same IP address (i.e. 192.0.2.1) on port 80.

How do I take users from domain1.example to one site, and users requesting from domain2.example to another site?

Additionally how do I set up subdomains? Someone requesting x.domain1.example should go to a third site.

Patrick Mevzek
  • 10,995
  • 16
  • 38
  • 54
Jamie Gaunt
  • 5
  • 2
  • 2

1 Answers1

0

When you configure the site in IIS you can assign the necessary host name in the bindings and the site will only respond to this.

enter image description here

ChrisBint
  • 12,773
  • 6
  • 40
  • 62
  • Thank you, I was requesting the site from www.domain1.example when I only had domain1.example binded. Binded both now and it works fine! Thanks! – Jamie Gaunt Jun 01 '18 at 08:49