SSL contexts reuse across locations

Pavel Pautov P.Pautov at
Tue Jun 14 17:55:22 UTC 2022

Any comments?

> -----Original Message-----
> From: Pavel Pautov via nginx-devel <nginx-devel at>
> Sent: Tuesday, May 24, 2022 23:16
> To: nginx-devel at; Maxim Dounin <mdounin at>
> Cc: Pavel Pautov <P.Pautov at>
> Subject: RE: SSL contexts reuse across locations
> EXTERNAL MAIL: nginx-devel-bounces at
> Hi,
> Here is another iteration of patch, now it completely avoids creating SSL
> contexts without SSL proxying.
> Also changed some variable names and formatting in attempt to improve
> readability.
> Not sure about moving of merge/reuse logic into ngx_http_proxy_set_ssl(). I
> assume, it could look like "ngx_http_proxy_set_ssl(cf, conf, prev, reuse_ssl)",
> which seems to widen its scope too much.

More information about the nginx-devel mailing list