I’m hosting several HTTPS sites on a single IIS server and IP address. Each site has its own certificate, and I’m not sure whether I should rely on host names and SNI for every binding or assign separate IP addresses.
In IIS, the binding has a host name field and a “Require Server Name Indication” checkbox. Is SNI the normal choice for current browsers, and are there any gotchas when renewing certificates or adding another site later?
I’d appreciate hearing how others organize bindings for multiple production sites on one server.
For several IIS sites sharing one IP address, the usual setup is to give each site its own hostname-based HTTPS binding on port 443 and enable Server Name Indication (SNI).
In IIS Manager, open a site’s Bindings, add or edit an https binding, set the IP address to All Unassigned (or the shared IP), use port 443, and enter that site’s hostname, such as
www.example.com. Select Require Server Name Indication and choose a certificate that covers that hostname. Repeat for each site, using its own hostname and matching certificate.Make sure DNS for every hostname points to the shared IP, and that the server’s firewall allows inbound HTTPS traffic. The hostname in each request lets IIS select the right site, while SNI lets the TLS handshake select the right certificate.
If you cannot use SNI—for example, because you must support older clients—you may need separate IP addresses for sites that use different certificates. A single certificate covering all the hostnames can also be an option, depending on your client requirements and IIS configuration.