choosing backend based on header value

Alexandr Gomoliako zzz at
Mon Sep 3 23:48:21 UTC 2012

> This is exactly what I thought. But then is there a way without
> explicitly specifying the nodes.?
> I understand the pitfalls, its just to be used for testing purposes.
> (like sending a request to a test server)

There is:

map $http_x_caching_node $x {
    default  backend_boxes;
    ~.  $http_x_caching_node;

More information about the nginx mailing list