Re: layer 7 proxy hierarchy

From: Jonah Benton <jonah#jonah.com>
Date: Wed, 9 Jun 2010 11:38:34 -0400


Thanks for the rapid response. At first blush, X-Accel-Redirect doesn't look to be quite what I need:

So, maybe it's doable, though I'd rather be able to just maintain the ordering in the proxy configuration.

I'll look some more, though, thank you for the pointer.

On Wed, Jun 9, 2010 at 2:58 AM, Rapsey <rapsey#gmail.com> wrote:
> You can't do this with haproxy, but you can with nginx and X-Accel-Redirect
>
>
> Sergej
>
> On Wed, Jun 9, 2010 at 5:17 AM, Jonah Benton <jonah#jonah.com> wrote:
>>
>> Greetings,
>>
>> I have several web applications that each service different portions
>> of the same taxonomy. The taxonomy is very deep- millions of
>> resources- and the rules that dictate which part of the taxonomy each
>> application serves are fluid and changing. In general it isn't easy to
>> determine declaratively which web application should service which
>> uri.
>>
>> I'd like to set up a proxy dispatch hierarchy, such that requests
>> arriving at a proxy front end would be dispatched to one of the web
>> applications. The response from web application 1 would checked by the
>> proxy front end. If it's a 404, then the front end discards the
>> response from web application 1, and dispatches to the next web
>> application. If non-404, then the response is returned to the client
>> and the transaction is considered handled. A 404 response from the
>> last web application would be considered a true 404 and would get
>> returned to the client.
>>
>> From a quick look at the configuration, it doesn't appear that this
>> can be done with HAProxy (nor with any other proxy software I've
>> looked at). Am I wrong, can this be arranged?
>>
>> Please cc me, I'm not subscribed to the list.
>>
>> Thank you,
>>
>> Jonah
>>
>
>
Received on 2010/06/09 17:38

This archive was generated by hypermail 2.2.0 : 2010/06/09 17:45 CEST