Under normal circumstances, an IP can only correspond to one HTTPS site, how to configure multiple sites? There are several ways to do this:
- With a wildcard certificate, this certificate needs to be purchased by a dedicated certification authority.
- Using a generic certificate, modify the port corresponding to SSL so that it does not collide.
The first kind of certificate is often expensive, and is suitable for some large companies. For many small webmaster, the use of ordinary certificates can save a lot of costs. Now introduce the second method, the idea is as follows:
If there are 2 domain names aaa.com and bbb.com.
First, purchase the corresponding certificate for two domain names.
Second, configure AAA to use the default 443 port, configure BBB to use a different port, such as 4433 port.
Once configured, you can
Https://aaa.com
https://bbb.com:4433
Visit the two sites.
One IP multiple HTTPS site configuration