Re: Selecting back end from host header

2015-11-23 Thread SL
> use_backend %[req.hdr(host),lower] Is there anyway to extract the host subdomain to use like this (rather than the full hostname)? I can't see any obvious way to do it from the manual, but perhaps I'm missing something. On 14 November 2015 at 22:14, SL wrote: > @Igor - thanks, I didn't know

Re: Selecting back end from host header

2015-11-20 Thread SL
> use_backend %[req.hdr(host),lower] Is there anyway to extract the host subdomain to use like this (rather than the full hostname)? I can't see any obvious way to do it from the manual, but perhaps I'm missing something.

Re: Selecting back end from host header

2015-11-14 Thread SL
@Igor - thanks, I didn't know about that map feature, I think it could be useful in a number of situations. @Baptiste - Ah, it is possible dynamically, that's great - thank you! On 14 November 2015 at 22:05, Baptiste wrote: > On Sat, Nov 14, 2015 at 3:21 PM, SL wrote: > > Hi, > > > > We have q

Re: Selecting back end from host header

2015-11-14 Thread David Birdsong
Can maps be used with 'use-server' in listen or backend sections similarly to how it can be used with 'use_backend'? On Sat, Nov 14, 2015 at 1:06 PM Baptiste wrote: > On Sat, Nov 14, 2015 at 3:21 PM, SL wrote: > > Hi, > > > > We have quite a large number of backends, and are selecting which bac

Re: Selecting back end from host header

2015-11-14 Thread Baptiste
On Sat, Nov 14, 2015 at 3:21 PM, SL wrote: > Hi, > > We have quite a large number of backends, and are selecting which back end > to use based on the host specified in the request. (Note these are not > loadbalanced, we have to target them individually). > > Currently we are doing this with ACLs,

Re: Selecting back end from host header

2015-11-14 Thread Igor Cicimov
On Sun, Nov 15, 2015 at 1:21 AM, SL wrote: > Hi, > > We have quite a large number of backends, and are selecting which back end > to use based on the host specified in the request. (Note these are not > loadbalanced, we have to target them individually). > > Currently we are doing this with ACLs

Selecting back end from host header

2015-11-14 Thread SL
Hi, We have quite a large number of backends, and are selecting which back end to use based on the host specified in the request. (Note these are not loadbalanced, we have to target them individually). Currently we are doing this with ACLs, e.g. for each: acl svr1_request hdr_beg(host) -i s