I had some test sites setup on a server that had one IP and utilized different ports for the site like this.
www.acme.com:5000 www.acme.com:6000
This worked great until a SSL certificate was installed on the server. Now the sites above are not coming up.
How do I configure them so that they come up again?
If you want to host multiple websites on the same port and IP address, you will have to use a unique Host header. The host header is a part of an HTTP request to the server sent by a client that specifies which website it is addressed to.
IIS supports multiple Web sites on a single server. To create and host multiple Web sites, you must configure a unique identity for each site on the server. To assign a unique identity, distinguish each Web site with at least one of three unique identifiers: an IP address, or a TCP port number or a host header name.
Hosting Multiple Websites on IIS server by Host Headers You must choose another name (Host Name) for the second IIS website to create a unique binding. To do this, Right-click TestSite and select Edit Bindings. Select the binding you need and click Edit.
SSL can only segmented by IP and Port. You can however can run SSL over a different port than 443 by simply adding a binding for https and a different port.
In IIS 7.x, in the Bindings for the site, you would add one for SSL and change the port:
What would also need to happen, which isn't shown in this image is the selection of the appropriate SSL certificate which would need to be configured on the server. With that set, you would then access the site by going to:
https://mysite:1234/...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With