Forcing exact hostname match in IIS
Posted
by
iis_newbie
on Server Fault
See other posts from Server Fault
or by iis_newbie
Published on 2012-06-20T15:06:10Z
Indexed on
2012/06/20
15:17 UTC
Read the original article
Hit count: 220
I am looking how to force an exact hostname match within IIS when using https. For instance, I want "https://works.mysite.com/resource" to be ok, but "https://noworks.mysite.com/resource" to return 404 (assuming they both resolve to the same IP).
IIUC, the default behavior of IIS when going to "https://noworks.mysite.com/resource" is to get a cert warning, if the user presses continue, the user is able to access the URL.
I was able to do this by generating a *.mysite.com SSL cert, and then specify the hostname within the bindings in IIS, but without the * in the beginning, the hostname field is disabled and blank.
Am I missing something simple here?
© Server Fault or respective owner