Enable HTTP2 in one of several name-based servers

itpp2012 nginx-forum at forum.nginx.org
Thu Jun 23 10:06:23 UTC 2016

Valentin V. Bartenev Wrote:
> What effect do you expect?  Since clients are able to request
> different hosts 
> using single HTTP/2 connection, closing the connection in one server
> block 
> will break everything.

I'm just venting an (untested) idea, some other way to tell the client to
revert back to pre-http2 connections when hitting a server block, maybe a
simple return would be enough.

connect site.ru (h2)
connect.h2 site2.ru (deny h2, client should revert to http(s))

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267795,267808#msg-267808

More information about the nginx mailing list