I guess it would be more like this...

frontend loadbalancer *:80
acl bot1_acl hdr(User-Agent) msnbot/2.0b
acl bot2_acl hdr(User-Agent) Baiduspider+
acl bot3_acl hdr(User-Agent) Googlebot/2.1
use_backend bots if bot1_acl
use_backend bots if bot2_acl
use_backend bots if bot3_acl
default_backend valid

On 04/08/2010 02:54 PM, Brian Koloszyc wrote:
So with something like this?

frontend loadbalancer *:80
acl bot_acl hdr(User-Agent) msnbot/2.0b
use_backend bots if bot_acl
default_backend valid

backend bots
server w1 192.168.1.100:80
server w2 192.168.1.101:80

backend valid
server w3 192.168.1.102:80
server w4 192.168.1.103:80

Can you add multiple acls on the frontend?  For example:

frontend loadbalancer *:80
acl bot_acl hdr(User-Agent) msnbot/2.0b
acl bot_acl hdr(User-Agent) Baiduspider+
acl bot_acl hdr(User-Agent) Googlebot/2.1
use_backend bots if bot_acl
default_backend valid


On 04/08/2010 02:35 PM, Willy Tarreau wrote:
On Thu, Apr 08, 2010 at 02:32:28PM -0700, Brian Koloszyc wrote:

Thanks Willy.  I'll need to get up to speed on using ACL's and multiple
backends.  I'll scrape together a config and then post back if I can't
figure it out.  This will be excellent if I can get it to work.

there are a few simple examples near the end of the configuration manual,
and in the "examples" directory, look for configs with the "use_backend"
keyword. That will be what you need.

Regrads,
Willy



Reply via email to