mikegray_198028
Jan 04, 2017Cirrus
irule help
Hello Team,
I am using the following irule to route traffic directly to the node based uri
https://example.com/app/* > node 192.168.10.20 port 80
https://example.com/* > default pool.
This is working but while accessing /app/ ltm not sending response with /app/ example GET https://example.com/app/test/index.html response 302 https://example.com/test/login.html
Hence the next request going to the default pool instead of direct node . can we modify the response to add /app/
when HTTP_REQUEST {
if { [string tolower [HTTP::uri] ] starts_with "/app/" } {
node 192.168.10.20 80
HTTP::uri [string map -nocase {"/app/" "/"} [HTTP::uri]]
}
}