Re: Listen & more of 2 couples <ip>:<port>

From: Willy Tarreau <w#1wt.eu>
Date: Tue, 11 Nov 2008 09:32:15 +0100


Hi Krzysztof,

On Mon, Nov 10, 2008 at 07:34:28AM +0100, Krzysztof Oledzki wrote:
> On Wed, 5 Nov 2008, Laurent DOLOSOR wrote:
>
> >Hello,
> Hello,
>
> >I try to use 'listen' with more of 2 couples <ip>:<port>
> >
> >The doc says
> >
> >>- the <IP_address>:<port_range> couple may be repeated indefinitely to
> >>require the proxy to listen to other addresses and/or ports. To achieve
> >>this, simply separate them with a coma.
> >
> >So I tried
> >
> >>listen www-mutualise 80.248.x.y1:80,80.248.x.y2:80
> >
> >It works.
> >
> >But
> >
> >>listen www-mutualise 80.248.x.y1:80,80.248.x.y2:80,80.248.x.y3:80
> >
> >Doesn't work o_O
> >
> >>[ALERT] 309/161509 (15450) : Invalid server address:
> >>'80.248.x.y1:80,80.248.x.y2'
> >>[ALERT] 309/161509 (15450) : Error reading configuration file :
> >>/etc/haproxy/haproxy.cfg
> >
> >Someone else see something like that ? Any idea about what happens ?
>
> Could you please check the attached patch?

Thanks for catching this one, I'll merge it.

Laurent, you might prefer using multiple "bind" statements instead of putting all your IPs on the same line :

listen www-mutualise

	bind 80.248.x.y1:80
	bind 80.248.x.y2:80
	bind 80.248.x.y3:80

Regards,
Willy Received on 2008/11/11 09:32

This archive was generated by hypermail 2.2.0 : 2008/11/11 09:45 CET