aFlex server selection by uri
Hi,
I would need to do a aFlex script that would match www.domain.tld/test and then forward traffic only to one server ip-address, instead of loadbalancing with two servers. I have made the following aFlex script:
I would need to do a aFlex script that would match www.domain.tld/test and then forward traffic only to one server ip-address, instead of loadbalancing with two servers. I have made the following aFlex script:
# aFleX script for URL Rewrite # Direct /test to www1 10.0.01 # when HTTP_REQUEST { if [HTTP::uri] contains "/test" set target 10.0.0.1 }My AX says that the script is ok, but it does not forward traffic only to 10.0.0.1, but also to another host.
Tagged:
0
Comments
What you are currently doing, is just setting a variable.
You need the "node" command.
Thank you diederik! That seems to work now.