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?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
phpcn_u1582

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template