Welcome! Log In Create A New Profile

Advanced

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

June 23, 2016 04:35AM
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";

---
nginx for Windows http://nginx-win.ecsds.eu/
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: 196
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready