Welcome! Log In Create A New Profile

Advanced

Re: Nginx upstream server certificate verification

Sergey Kandaurov
April 10, 2017 01:18PM
> On 6 Apr 2017, at 21:46, shivramg94 <nginx-forum@forum.nginx.org> wrote:
>
> Thank Sergey, for you response.
>
> I have one more question. If I have multiple upstream server host names in
> the upstream server block, then how can I specify the specific upstream
> server host name to which the request is being proxied, in the
> proxy_ssl_name directive?
>
> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,273295,273462#msg-273462

You could try to construct proxy_ssl_name based on upstream address, e.g.:

map $upstream_addr $name {
~\Q192.0.2.1:8000\E$ first;
~\Q192.0.2.2:8000\E$ second;
}

proxy_ssl_name $name;

Note well that $upstream_addr may contain multiple addresses, use it
with a special care. See for details: http://nginx.org/r/$upstream_addr

--
Sergey Kandaurov

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

Nginx upstream server certificate verification

shivramg94 March 30, 2017 02:59AM

Re: Nginx upstream server certificate verification

Sergey Kandaurov April 03, 2017 10:46AM

Re: Nginx upstream server certificate verification

shivramg94 April 03, 2017 01:56PM

Re: Nginx upstream server certificate verification

shivramg94 April 06, 2017 02:46PM

Re: Nginx upstream server certificate verification

Sergey Kandaurov April 10, 2017 01:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
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