Valentin V. Bartenev
June 23, 2016 05:30AM
On Thursday 23 June 2016 04:35:45 itpp2012 wrote:
> Valentin V. Bartenev Wrote:
> -------------------------------------------------------
> > > Is it possible to enable http2 in only one of several name-based
> > servers?
> > >
> > [..]
> >
> > No, it's not possible.
>
> Would it be a big (api) change to add a server block session flag?
>
> ngx_http_v2_init(ngx_event_t *rev)
> ...
> if ( h2scf.no_http2 ) { /* example server block flag */
> ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http2 disabled in server
> context");
> ngx_http_close_connection(c);
> return;
> }
> ...
> c->log->action = "processing HTTP/2 connection";
>

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.

wbr, Valentin V. Bartenev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Enable HTTP2 in one of several name-based servers

Marcelo MD June 22, 2016 05:34PM

Re: Enable HTTP2 in one of several name-based servers

Valentin V. Bartenev June 22, 2016 05:36PM

Re: Enable HTTP2 in one of several name-based servers

itpp2012 June 23, 2016 04:35AM

Re: Enable HTTP2 in one of several name-based servers

Valentin V. Bartenev June 23, 2016 05:30AM

Re: Enable HTTP2 in one of several name-based servers

itpp2012 June 23, 2016 06:06AM

Re: Enable HTTP2 in one of several name-based servers

Marcelo MD June 23, 2016 09:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 181
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready