Re: Dynamic Redirects

From: Malte Geierhos <malte#snapscouts.de>
Date: Thu, 08 Apr 2010 08:38:39 +0200


Hi Sean - not from the team,

but ... you can use something like this :

# Define an extra backend for all Requests matching the User-Agent of Mozilla
# Use default backend otherwise

acl mozilla hdr(User-Agent) -i Mozilla use backend your_mozilla_backend if mozilla default_backend your_normal_www_backend

kind regards
Malte

Am 07.04.10 20:57, schrieb Harmer, Sean:
> HAProxy Team,
>
> Is there a way to capture the User-Agent from an HTTP Header, then
> query a database for that User-Agent, then based on the result of the
> database query, transparently route the request to an appropriate server?
>
> Thanks,
> Sean
Received on 2010/04/08 08:38

This archive was generated by hypermail 2.2.0 : 2010/04/08 08:45 CEST