<div dir="ltr"><div><div><div><div><div><div><div>Thanks Maxim!<br><br>This is something interesting to know.<br><br></div>We had an outage last year when we had bunch of virtual hosts all with<br></div>listen a.b.c.d:443 ssl;<br></div>and someone added a new virtual host with<br></div>listen a.b.c.d:443;<br></div>and caused 443 no longer doing SSL. <br></div>Based on what you said, this should not happen. I need to dig deeper into it.<br><br></div>Frank<br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 16, 2018 at 9:49 AM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<span class=""><br>
On Mon, Apr 16, 2018 at 08:13:42AM -0700, Frank Liu wrote:<br>
<br>
> Does that mean nginx will read and combine listen options from <br>
> all virtual hosts and use that to create listening socket? <br>
<br>
</span>Yes. You can configure something like this:<br>
<br>
server {<br>
listen 443 ssl;<br>
...<br>
}<br>
<br>
server {<br>
listen 443;<br>
...<br>
}<br>
<br>
and both servers will use SSL. Moreover, currently you can do <br>
something like this:<br>
<br>
server {<br>
listen 443 ssl;<br>
...<br>
}<br>
<br>
server {<br>
listen 443 http2;<br>
...<br>
}<br>
<br>
and both servers will use SSL and HTTP/2. (The latter is actually <br>
very confusing, and likely will result in warnings / errors during <br>
configuration parsing in future versions.)<br>
<div class="HOEnZb"><div class="h5"><br>
-- <br>
Maxim Dounin<br>
<a href="http://mdounin.ru/" rel="noreferrer" target="_blank">http://mdounin.ru/</a><br>
______________________________<wbr>_________________<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/<wbr>mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>