Binding by Hostname

From: Laurie Young <laurie#new-bamboo.co.uk>
Date: Fri, 16 Apr 2010 16:04:05 +0100


Hi

I hope someone can help me here...

I'm trying to set up HAproxy to bind two different listeners to different hostnames.

I found this in the docs for the bind command:

<address> is optional and can be a host name,

so i set up my config file like this

defaults
  mode http

frontend www
  bind wildfalcon.com:80
  timeout client 5000

frontend test
  bind www.wildfalcon.com:80   timeout client 86400000

And I get the following error message

Available polling systems :

       poll : pref=200,  test result OK
     select : pref=150,  test result OK

Total: 2 (2 usable), will use poll.
Using poll() as the polling mechanism.
[ALERT] 105/160114 (10091) : Starting frontend www: cannot bind socket
[ALERT] 105/160114 (10091) : Starting frontend test: cannot bind socket

Why can the socket not be bound to (i'm starting as sudo to ensure I have permissions)?

Thanks in advance

Laurie

-- 
Dr Laurie Young
Scrum Master
New Bamboo

Follow me on twitter: @wildfalcon
Follow us on twitter:  @newbamboo

Creating fresh, flexible and fast-growing web applications is our passion.


3rd Floor, Gensurco House,
46A Rosebery Avenue, London, EC1R 4RP

http://www.new-bamboo.co.uk
Received on 2010/04/16 17:04

This archive was generated by hypermail 2.2.0 : 2010/04/16 17:15 CEST