<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Generating a separate server block for every certificate is the solution.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Since you are probably not managing the configuration by hand at this scale, use your favourite configuration management tool with a well-cooked template to generate nginx' configuration.<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 Sat, Dec 19, 2015 at 7:21 PM, gg <span dir="ltr"><<a href="mailto:gglater62@gmail.com" target="_blank">gglater62@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Dec 15, 2015 at 01:01:15PM +0300, Maxim Konovalov wrote:<br>
> On 12/15/15 12:53 PM, Valentin V. Bartenev wrote:<br>
> > On Tuesday 15 December 2015 09:44:45 Aleksey Portnov wrote:<br>
> >> Hello!<br>
> >><br>
> >> Is it possible and correct something like:<br>
> >><br>
> >> server {<br>
> >> listen <a href="http://1.1.1.1:443" rel="noreferrer" target="_blank">1.1.1.1:443</a> ssl;<br>
> >><br>
> >> server_name <a href="http://sitename.de" rel="noreferrer" target="_blank">sitename.de</a> <a href="http://sitename.fr" rel="noreferrer" target="_blank">sitename.fr</a> <a href="http://sitename.nl" rel="noreferrer" target="_blank">sitename.nl</a>;<br>
> >> root /var/www/vhosts/Live/public_html;<br>
> >><br>
> >> ssl_certificate /etc/ssl/web/$host.pem;<br>
> >> ssl_certificate_key /etc/ssl/web/$host.key;<br>
> >><br>
> >> ...<br>
> >> #commont part for all sites<br>
> >> ...<br>
> >> }<br>
> >><br>
> ><br>
> > Currently it's not possible. Certificates and keys<br>
> > are loaded while reading configuration.<br>
> ><br>
> .. and we are working on a similar feature.<br>
<br>
I have similar problem.<br>
There is:<br>
server {<br>
listen 1.1.1.1<br>
listen <a href="http://1.1.1.1:443" rel="noreferrer" target="_blank">1.1.1.1:443</a><br>
server_name _ ;<br>
....<br>
}<br>
<br>
and many locations there. Number of different hostnames might be thousands.<br>
Some of them, (hundreds) might have certificates. How to serve them with nginx.<br>
Generate separate server block {} for every certificate is not a solution.<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" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div></div>