Welcome! Log In Create A New Profile

Advanced

Re: Unit test for proxy_protocol

Sergey Kandaurov
September 21, 2021 10:56AM
> On 21 Sep 2021, at 17:46, Greeshma A <greeshma.avadhootha@gmail.com> wrote:
>
> Thanks for pointing to the variable I can use.
>
> What variable would capture the ip address and port number together?
> As far as I see, it's either the ip address or port?
> How can I combine them in the map definition?
> Can I put a colon in the map definition like follows
>
> map $proxy_protocol_addr:$proxy_protocol_port $proxy_state{
>
> }
>

Yes, you can in modern nginx versions.
See the very beginning of the reference:
http://nginx.org/r/map

--
Sergey Kandaurov

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

Unit test for proxy_protocol

Greeshma A 394 September 21, 2021 12:58AM

Re: Unit test for proxy_protocol

Sergey Kandaurov 119 September 21, 2021 05:44AM

Re: Unit test for proxy_protocol

Greeshma A 120 September 21, 2021 10:48AM

Re: Unit test for proxy_protocol

Sergey Kandaurov 102 September 21, 2021 10:56AM

Re: Unit test for proxy_protocol

Greeshma A 145 September 21, 2021 11:56AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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