Re: Haproxy and VirtualHosts

From: Aleksandar Lazic <al-haproxy#none.at>
Date: Sat, 6 Sep 2008 16:30:12 +0200


Dear Jesse,

On Sam 06.09.2008 10:22, Jesse Lovelace wrote:
>Hi all,
>
>I'm having a small problem that I can't seem to find an easy answer for.
>
>My setup is:
>
>| Nginx | ->| HAProxy 1.3 | -> | Apache 2.2s |
>
>My problem is that since HAProxy changes the Host header, I can't use
>Apache's name-based virtual hosts.

Sorry but in the default config normaly HAProxy doesn't touch the Host header, afaik.

Please can you call haproxy with the following command ad take a look of the output.

./haproxy -f <YOUR_CONFIG>.cfg -Vd

>So, the question is, can I setup HAProxy to not change the Host header
>when it proxies? This would have a similar net effect to Apache's
>ProxyPreserveHost directive.

This should work by default.

BR

Aleks Received on 2008/09/06 16:30

This archive was generated by hypermail 2.2.0 : 2008/09/06 16:45 CEST