Also more importantly, can I use proxy protocol with TCP backends? I
need TCP backends to support SPDY.

http://trac.nginx.org/nginx/ticket/355#comment:2 seems to indicate
that it does, but I just wanted to confirm.

On Mon, Jun 8, 2015 at 5:19 PM, Viranch Mehta <[email protected]> wrote:
> On Sun, Jun 7, 2015 at 10:18 AM, Willy Tarreau <[email protected]> wrote:
>> On Sat, Jun 06, 2015 at 02:00:11PM +0530, Viranch Mehta wrote:
>>> Hey,
>>>
>>> One more thing: I'd also prefer to be able to add X-Forwarded-*
>>> headers to the proxied requests. While I don't see this possible due
>>> to TCP backends, is there a possible workaround?
>>
>> For TCP, you can enable the proxy protocol ("send-proxy" on the server
>> lines), but it requires that the server supports it. Recent nginx versions
>> do support it now. You'd rather avoid mixing x-forwarded-for and the proxy
>> protocol since you'll have to pick only one on the server and you could
>> quickly become confused. So better just use proxy proto for both http and
>> spdy.
>
> How would I include the Host header in the health checks in this case?
> Currently I insert it with:
>
> option httpchk HEAD /check HTTP/1.1\r\nHost:\ site1.foo.com
>
> How can I do this with proxy health checks?
>
> Viranch

Reply via email to