I have two websites: Prod and Train
In my hosts file I have two entries:
xxx.xx.xxx.xxx prod.site.com
xxx.xx.xxx.xxx train.site.com
I have two separate websites set up in IIS7, Prod and Train.
The Prod site has the following bindings:
http Prod 80 *
https 443 *
The Train site has:
http Train 80 *
http:// works for train but not prod (which has the require SSL flag enabled) and https:// works for both, except that https://train.site.com is loading the production website instead of the training one.
This is probably a stupid question, but how can I change the bindings so that https://train.site.com does not work or at least redirects to http://? If someone accidentally types https:// I don't want them to start messing around with a production site thinking that they are in training.
I have a vague idea of why it is doing this, but no idea how to fix it without breaking production.