<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">What did you expect?<br>What did you get?<br>What did you think you configured?<br></div><div class="gmail_extra"><div><div class="gmail_signature"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></div></div>
<br><div class="gmail_quote">On Mon, May 11, 2015 at 1:11 PM, braindeaf <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey there, I'm struggling to find the correct answer and unsure if there<br>
even is one.<br>
<br>
We have a domain say, <a href="http://example.co" target="_blank">example.co</a> and we've purchased a wildcard SSL<br>
certificate for it. We want to be able to provide what amounts to....with<br>
minimal configuration.<br>
<br>
<a href="https://example.co" target="_blank">https://example.co</a><br>
<a href="https://blah.example.co" target="_blank">https://blah.example.co</a><br>
<a href="https://somerandomsubdomain.example.co" target="_blank">https://somerandomsubdomain.example.co</a><br>
<br>
all pointing at the same server so something like<br>
<br>
server {<br>
  port 443<br>
  server_name <a href="http://example.co" target="_blank">example.co</a> *.<a href="http://example.co" target="_blank">example.co</a>;<br>
<br>
  ssl on;<br>
  ssl_protocols .....;<br>
  ssl_ciphers .....;<br>
  ssl_prefer_server_ciphers on;<br>
  ssl_certificate /data/nginx/ssl/example.co.crt;<br>
  ssl_certificate_key /data/nginx/ssl/example.co.key;<br>
}<br>
<br>
This doesn't appear to work as I would expect it to. Would we need to set up<br>
a different server for each subdomain explicity. or could we get away with<br>
one config for <a href="http://example.co" target="_blank">example.co</a> and another for *.<a href="http://example.co" target="_blank">example.co</a>? I've seen examples<br>
of using the same ssl key for different virtual servers with different<br>
hostnames but not pointing to the same one.<br>
<br>
Anyone else have any joy with a similar config?<br>
<br>
--<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,258792,258792#msg-258792" target="_blank">http://forum.nginx.org/read.php?2,258792,258792#msg-258792</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div></div>