Posted By Sebastian Leupold on 08 Apr 2021 04:14 PM
For your IIS website, you would need at least 4 bindings to host 2 domains:
You may bind to a single or all IPs for port 80. If you are using SSL, you would need the same for port 443, using a certificate and a dedicated IP (for port 80, you may assign the IP specified in DNS or serve all IPs bound to your IIS - the others will just not be used.
IN DNN, you would have
- website 1 with a Portal Alias for domain1.com or www.domain1.com
- website 2 with a Portal Alias for domain2.com or www.domain2.com
If you want to use SSL, you need to enable and enforce SSL in website settings and set all pages to "Secure".
This makes sure, both websites are properly routed by domain1.com and domain2.com.
thank you carefully explaining the configuration, and i believe that i have what you specified. unfortunately it does not work, by which i mean, as soon as i navigate to www.domain2.com, i am immediately taken to www.domain1.com
in iis --> Bindings (for the dnn website)... i have this
- domain1.com --> ip1
- domain2.com --> ip2
- www.domain1.com --> ip1
- www.domain2.com --> ip2
I have ssl for domain1.com, but for simplicity, i have omitted it.
Regarding DNN, i have what you specified.