Unit test for proxy_protocol
Sergey Kandaurov
pluknet at nginx.com
Tue Sep 21 14:54:54 UTC 2021
> On 21 Sep 2021, at 17:46, Greeshma A <greeshma.avadhootha at 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
More information about the nginx-devel
mailing list