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 <jo...@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
>
>

Reply via email to