AN IRULE THAT ADDS A STRING TO HTTP REQUEST OR RESPONSE (POOL MEMBER ALONE DOESN'T LOAD)
I got a request from a customer for ssl offload to their website.(using tomcat engine) Ordinarily, this isn't hard. However, their pool members don't load on their ip:port combination.
Both pool members are 172.30.114.56:8080, and 172.30.114.58:8080. However, none of them loads as a webpage, when type that on my browser.
They only work when 172.30.114.56:8080/arsys OR 172.30.114.58:8080/arsys, is typed into the browser.
What irule, can i use to add a string to any pool member chosen.
Like, if 172.30.114.56:8080 is chosen, it will automatically return, 172.30.114.56:8080/arsys, or 172.30.114.58:8080/arsys.
I tried the below irule, but its not working.
NOTE: VIP is 172.30.114.60.
when HTTP_REQUEST { if { [HTTP::host] equals "172.30.114.60" and [HTTP::uri] starts_with "/" } { HTTP::redirect "http://172.30.114.58:8080/arsys"; } }
I want to try this for http VS first, to test its usability,then use it for HTTPS.