html - How to configure SSL for multiple domain names in nginx configuration file?
迷茫2017-05-16 17:22:05
0
2
723
Asking for advice on nginx configuration problem
A configuration file contains multiple server_names, such as aaa.com bbb.com. How to specify that aaa.com supports ssl and bbb.com does not support ssl?
If it is the same server, this does not seem to work. Specify aaa.com to support ssl, and bbb.com will support https access, but because there is no certificate matching bbb.com, an error will be reported. You'd better consult the SSL certificate authority. If you use self-signed SSL, you can switch to free SSL.
I currently use multiple servers to solve this problem.
If it is the same server, this does not seem to work. Specify aaa.com to support ssl, and bbb.com will support https access, but because there is no certificate matching bbb.com, an error will be reported. You'd better consult the SSL certificate authority. If you use self-signed SSL, you can switch to free SSL.