Unit test for proxy_protocol

Greeshma A greeshma.avadhootha at gmail.com
Tue Sep 21 15:55:20 UTC 2021


Thanks! It worked :)

On Tue, Sep 21, 2021 at 7:55 AM Sergey Kandaurov <pluknet at nginx.com> wrote:

>
>
> > 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
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20210921/5d0383e3/attachment.htm>


More information about the nginx-devel mailing list