[PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Bjørnar Ness bjornar.ness at gmail.com
Tue Sep 20 17:18:16 UTC 2016


2016-09-20 17:18 GMT+02:00 Dmitry Volyntsev <xeioex at nginx.com>:
> On 20.09.2016 15:50, Bjørnar Ness wrote:
>> [ ... ]
>> Also, I want access to the _dst part of the proxy protocol to make
>> decisions based on the original destination address, which is
>> currently unavailable.
>
> Why do you need to know the destination address? could you elaborate
> what do you want to know on the "(something_with_proxy_protocol_support)"
> side?

$proxy_protocol_dst_addr is the original destination of the request. This
is useful to be able to provide dynamic responses based on destination
address, or in cases where the lookup key for a decision is a function on
the original destination address.

Say lookup-key in for example a database is $proxy_protocol_dst_addr/$http_host

> If you have a fixed set of LBs you could configure a separate listen
> in nginx configuration per each LB.

This is true, but requires duplicated configurations and configuration
generation/
reloads for a scaleup/down

-- 
Bj(/)rnar



More information about the nginx-devel mailing list