search

Home  >  Q&A  >  body text

html - How to configure SSL for multiple domain names in nginx configuration file?

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?

迷茫迷茫2824 days ago748

reply all(2)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 17:24:05

    I currently use multiple servers to solve this problem.

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-16 17:24:05

    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.

    reply
    0
  • Cancelreply