I have a requirement wherein I need to choose a backend based on the
value of a header sent by the client. But in all other cases where the
header is not set I would like to use the available upstream block
with whatever logic (wr/r) it is set to.
For eg:
upstream backend_boxes {
server 192.168.1.30:9001 weight=25;
server 192.168.1.45:9001 weight=75;
}
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)
Hi Alexandr,
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)