choosing backend based on header value
Harish Sundararaj
tuxtoti at gmail.com
Tue Sep 4 00:27:25 UTC 2012
That looks good. Thanks a ton.
Harish.
On Tue, Sep 4, 2012 at 5:18 AM, Alexandr Gomoliako <zzz at zzz.org.ua> wrote:
>> 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;
> }
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list