On Sun, Oct 10, 2010 at 10:19:29AM -0400, M B wrote:
> I have a backend with lots of frontends.
>
> I want one of those frontends to be a listener on port 80.
>
> The port 80 listener needs to route traffic based on the Host http request
> header.
>
> After traffic is split based on the Host header, I want to do further header
> manipulation and rate limiting specific to each portion of the split traffic
> before sending to the big shared backend.
>
> Is there any way to do this?
Rewrite rules can be conditionned with ACLs, so that's probably what you'd
like to do. You can even do that in your backend, for instance :
frontend xxx1
bind :1234
use_backend bck1
frontend xxx2
bind :80
use_backend bck1
backend bck1
# remove x-forwarded-for only for requests sent to port 80
reqidel ^X-forwarded-for if dst_port 80
> In the past I tried putting the port of a
> frontend in the server section of a backend to chain things, but I observed
> problems with -sf graceful port handover functionality.
I know some people who regularly do this, so I'm not sure what issue you
encountered with -sf. Are you sure you did not create a loop ?
Regards,
Willy