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.1use_backend bots if bot_acl
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
>
>
Received on 2010/04/08 23:54
This archive was generated by hypermail 2.2.0 : 2010/04/09 00:00 CEST