2 different SSL wildcards issue on same server

Any nginx experts in the house? So I have two different sites with SSL wildcards on my Trellis install. After I added the second one, there is problem with one of the www redirects. Otherwise it works fine…


If I go to www.site1.com it tries to use the wildcard certificate from site2.com and wont redirect. If I explicitly put the wildcard certs in the nginx www redirect block I get a different error: the network connection was reset.

Any ideas?

So moving the certs to the redirect block works if you add the include ssl.conf and ssl-stapling.conf to the redirect block. Submitted PR

1 Like