Re: haproxy configuration for load balancing

2009-01-21 Thread Maciej Bogucki
this is error message i got when i start haproxy Available polling systems : select : pref=150, test result OK Total: 1 (1 usable), will use select. Using select() as the polling mechanism. [ALERT] 021/101057 (14503) : Starting proxy http: cannot bind socket Hello, You can't run two ap

Re: stats socket problem

2009-01-21 Thread Willy Tarreau
On Thu, Jan 22, 2009 at 01:01:56AM +0100, Martin Karbon wrote: > Quoting Willy Tarreau : > > >On Wed, Jan 21, 2009 at 09:43:58PM +0100, Martin Karbon wrote: > >>Quoting Willy Tarreau : > >> > >>Hi Willy, thanks for the fast reply > >>>Hi Martin, > >>> > >>>On Wed, Jan 21, 2009 at 12:13:35PM +0100,

Re: haproxy configuration for load balancing

2009-01-21 Thread vaibhav pol
this is error message i got when i start haproxy Available polling systems : select : pref=150, test result OK Total: 1 (1 usable), will use select. Using select() as the polling mechanism. [ALERT] 021/101057 (14503) : Starting proxy http: cannot bind socket thanks vaibhi On Thu, Jan 22,

Re: problem with forwardfor option

2009-01-21 Thread Dima Brodsky
Hmmm ... But what I am seeing in the logs is the following: without mod_rpaf in the logs I see: %{X-Forwarded-For}i == 'client ip' %h == 'proxy ip' and with keep-live I see: %{X-Forwarded-For}i == empty %h == 'proxy ip' with mod

Re: problem with forwardfor option

2009-01-21 Thread Patrick Viet
On Wed, Jan 21, 2009 at 11:40 PM, Dima Brodsky wrote: > I am telling mod_rpaf to look at both the local and the assigned IP. I am > also seeing it being re-writtent about 50% of the time, but a lot of the > times I still see the poxy's IP. Question, this setup is running on > Amazon's EC2 ... do

Re: stats socket problem

2009-01-21 Thread Martin Karbon
Quoting Willy Tarreau : On Wed, Jan 21, 2009 at 09:43:58PM +0100, Martin Karbon wrote: Quoting Willy Tarreau : Hi Willy, thanks for the fast reply >Hi Martin, > >On Wed, Jan 21, 2009 at 12:13:35PM +0100, Martin Karbon wrote: >>Hi >>I am relatively new to this great software and I am having pro

Re: problem with forwardfor option

2009-01-21 Thread Dima Brodsky
I am telling mod_rpaf to look at both the local and the assigned IP. I am also seeing it being re-writtent about 50% of the time, but a lot of the times I still see the poxy's IP. Question, this setup is running on Amazon's EC2 ... does anybody know if there is any sort of special config

Re: problem with forwardfor option

2009-01-21 Thread Patrick Viet
Hi, HAProxy only add the X-Forwarded for at the beginning of the connection. This is because it doesn't do any other processing on the next requests. With mod_rpaf everything is working perfectly for me. It has been for several months in a professionnal hosting environment with several top100 Fre

Re: stats socket problem

2009-01-21 Thread Willy Tarreau
On Wed, Jan 21, 2009 at 09:43:58PM +0100, Martin Karbon wrote: > Quoting Willy Tarreau : > > Hi Willy, thanks for the fast reply > >Hi Martin, > > > >On Wed, Jan 21, 2009 at 12:13:35PM +0100, Martin Karbon wrote: > >>Hi > >>I am relatively new to this great software and I am having problems > >>wi

Re: stats socket problem

2009-01-21 Thread Martin Karbon
Quoting Willy Tarreau : Hi Willy, thanks for the fast reply Hi Martin, On Wed, Jan 21, 2009 at 12:13:35PM +0100, Martin Karbon wrote: Hi I am relatively new to this great software and I am having problems with the feature stats socket. it won't write the haproxy.stat file no matter what. so I

Re: NTLM authentication

2009-01-21 Thread Willy Tarreau
Hi Nat, On Wed, Jan 21, 2009 at 03:17:14PM -, Morris, Nat wrote: > Earlier Willy Tarreau [mailto:w...@1wt.eu] wrote... > > > On Wed, Jan 14, 2009 at 08:45:18AM -0500, Guillaume Bourque wrote: > > > Hi, > > > > > > If my memory is corrected in Microsft documentation NTLM can't be > > > proxy

Re: haproxy configuration for load balancing

2009-01-21 Thread Willy Tarreau
On Wed, Jan 21, 2009 at 06:53:16PM +0530, vaibhav pol wrote: > Hi , > I am using ajaxterm service on loadbalncer where i setup haproxy and i > want to balance this web terminal service which running on the 8022 port > when client wants to connect to the this service it has to redirect to one >

Re: stats socket problem

2009-01-21 Thread Willy Tarreau
Hi Martin, On Wed, Jan 21, 2009 at 12:13:35PM +0100, Martin Karbon wrote: > Hi > I am relatively new to this great software and I am having problems > with the feature stats socket. it won't write the haproxy.stat file no > matter what. so I cannot run the "socat". > r...@lb1:~# echo "show sta

Re: reqrep help

2009-01-21 Thread Willy Tarreau
Hi Dave, On Wed, Jan 21, 2009 at 12:44:53PM -0500, Dave Pascoe wrote: > Long-time haproxy user...first time poster. Finally ran into a rewrite > issue I just haven't been able to solve. Seems like it ought to be simple. > > Problem: Need to rewrite requests like /foo/favicon.ico and to just > /

Re: problem with forwardfor option

2009-01-21 Thread Dima Brodsky
Sure. The original problem with haproxy, apache, and keep-alive was that I was seeing the proxy's IP at the apache server. I.e. HAProxy would not add the X-Forwarded-For header for keep-alive connections. With mod_rpaf the host is changed to the X-Forwarded-For IP as advertised, but for k

Re: problem with forwardfor option

2009-01-21 Thread David Rorex
Hi, I'm looking at using mod_rpaf myself, but I'm worried when you say things still seem to be broken. Could you elaborate on what exactly is going wrong? Thanks, David R On Wed, Jan 21, 2009 at 10:52 AM, Dima Brodsky wrote: > Thanks Patrick, > > I read the post and tried mod_rpaf version 0.6.

Re: problem with forwardfor option

2009-01-21 Thread Dima Brodsky
Thanks Patrick, I read the post and tried mod_rpaf version 0.6. I got mixed results. Although it set the host correctly, things still seemed to be broken when keep-alive was used. Not sure if this is a config issue or not, but currently because I am running this in a test environment bot

reqrep help

2009-01-21 Thread Dave Pascoe
Long-time haproxy user...first time poster. Finally ran into a rewrite issue I just haven't been able to solve. Seems like it ought to be simple. Problem: Need to rewrite requests like /foo/favicon.ico and to just /favicon.ico Using this line: reqrep ^([^\ ]*)\ /(.*)/favicon.ico \1

RE: NTLM authentication

2009-01-21 Thread Morris, Nat
Earlier Willy Tarreau [mailto:w...@1wt.eu] wrote... > On Wed, Jan 14, 2009 at 08:45:18AM -0500, Guillaume Bourque wrote: > > Hi, > > > > If my memory is corrected in Microsft documentation NTLM can't be > > proxy unless you configure NTLM in a very specific way. Even Microsoft > > proxy did not

haproxy configuration for load balancing

2009-01-21 Thread vaibhav pol
Hi , I am using ajaxterm service on loadbalncer where i setup haproxy and i want to balance this web terminal service which running on the 8022 port when client wants to connect to the this service it has to redirect to one of the two other server . here is configure file . I think somewhere

stats socket problem

2009-01-21 Thread Martin Karbon
Hi I am relatively new to this great software and I am having problems with the feature stats socket. it won't write the haproxy.stat file no matter what. so I cannot run the "socat". r...@lb1:~# echo "show stat" | socat unix-connect:/var/run/haproxy.stat stdio 2009/01/21 12:12:54 socat[4887]

stats socket problem

2009-01-21 Thread Martin Karbon
Hi I am relatively new to this great software and I am having problems with the feature stats socket. it won't write the haproxy.stat file no matter what I wanted to try to write some remote executable script that check the connection distribution every n seconds... my configuration file is