Re: Problem: host header keeps the IP of the HAProxy server

2011-08-15 Thread Ran S
Hi Cyril, I seem to be having luck with simply replacing the Virtual IP to 127.0.0.1, I will test it further. thanks again!! On Sun, Aug 14, 2011 at 6:16 PM, Cyril Bonté wrote: > Le Sunday 14 August 2011 13:31:57, Ran S a écrit : > > Hi Cyril, > > > > I see, thanks for that. > > So, will the co

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-14 Thread Cyril Bonté
Le Sunday 14 August 2011 13:31:57, Ran S a écrit : > Hi Cyril, > > I see, thanks for that. > So, will the correct way be to configure two different backends and include > the reqrep for each one of them. > But how will I get the listen or frontend node to load balance between two > different backe

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-14 Thread Ran S
Hi Cyril, I see, thanks for that. So, will the correct way be to configure two different backends and include the reqrep for each one of them. But how will I get the listen or frontend node to load balance between two different backend nodes? I can't find the configuration to do that... is it poss

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-14 Thread Cyril Bonté
Hi all, Le Sunday 14 August 2011 10:19:04, Ran S a écrit : > I don't know what's going on, this doesn't seem to work. > > With this configuration the header gets changed: > backend test_servers > server 118 172.31.0.118:85 id 118 > reqrep ^Host:\ 172.31.0.104 Host:\ 172.31.0.118

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-14 Thread Ran S
I don't know what's going on, this doesn't seem to work. With this configuration the header gets changed: backend test_servers server 118 172.31.0.118:85 id 118 reqrep ^Host:\ 172.31.0.104 Host:\ 172.31.0.118 But once I add the IF, it breaks and the header does not get changed!

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-11 Thread Ran S
I need some more help on this issue, I lost the working configuration since I added a Virtual IP to my setup: As you can see below my machines are 104 (currently running HAProxy) and 118. I changed the bind in the configuration, in order for HAProxy to bind to a virtual IP (I'm in the middle of tr

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-11 Thread Ran S
Ok got it! many thanks! just had to give the id as an integer instead of a name (118), and use srv_id 118 On Thu, Aug 11, 2011 at 1:45 PM, Ran S wrote: > Many thanks for your help! it seems that this is the correct way, but I get > a parsing error when checking the file in every possible syntax

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-11 Thread Ran S
Many thanks for your help! it seems that this is the correct way, but I get a parsing error when checking the file in every possible syntax I could come up with frontend http-in bind 172.31.0.104:80 default_backend test_servers backend test_servers server 118 172.31.0.118:

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-11 Thread Hervé COMMOWICK
reqrep if { srv_id } server's id can be forced with "id" keyword if needed Regards, Hervé. On Thu, 11 Aug 2011 13:22:36 +0300 Ran S wrote: > Well, I have no idea if this mailing list is active, as I have gotten > no response, but I'll give it another try. > > I managed to change the Host

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-11 Thread Ran S
Well, I have no idea if this mailing list is active, as I have gotten no response, but I'll give it another try. I managed to change the Host header using ReqRep successfully. However, now I am in a state where one of the backends need this change, and the other one doesn't. How would I go about

Problem: host header keeps the IP of the HAProxy server

2011-08-10 Thread Ran S
Hello all, I am trying to use HAProxy for the following configuration: Two Linux servers (node1, node2) running apache (on port 85) and squid and acting as Proxy servers to the Internet I installed HAProxy on node1, and configured it to listen to port 80, and have the backends in their respective