nginx: override global ssl directives for specific servers
Posted
by
alkar
on Server Fault
See other posts from Server Fault
or by alkar
Published on 2012-04-01T08:55:54Z
Indexed on
2012/04/01
11:33 UTC
Read the original article
Hit count: 240
In my configuration I have placed the ssl_* directives inside the http block and have been using a wildcard certificate certified by a custom CA without any problems. However, I now want to use a new certificate for a new subdomain (a server), that has been certified by a recognized CA.
Let's say the TLD is blah.org. I want my custom certificate with CN *.blah.org to be used on all domains except for new.blah.org that will use its own certificate/key pair of files with CN new.blah.org.
How would one do that? Adding new ssl_* directives inside the server block doesn't seem to override the global settings.
© Server Fault or respective owner