Iis – Is it safe to use an empty binding in IIS

bindingsiis

I want to show a specific page for unbound HTTPS URLs.
I have set up a basic website with an empty HTTPS binding, and this seems to work ok.

Am I right in thinking it is acting as a 'catch-all' for any HTTPS URLs that aren't already bound to other sites?
Is there a chance it may 'catch' valid URLs that are in a binding?

In what order does IIS match a URL against bindings?

Best Answer

Yes you are correct, an empty host name for an https binding catches all requests not already handled by other sides on the server. The IP addresses still play a role as well, if you have multiple ones.

IIS matching more specific bindings firsts, so one with no host name will be very low in the order.

Any requests to that site will most likely result in a certificate error and the requested host name and the name in the certificate for the site will most likely be different.

I am running catch-all sites on my IIS servers for over ten years and never seen and problems with it.