AN IRULE THAT ADDS A STRING AS AN HTTP RESPONSE TO ANY POOL MEMBER CHOSEN BY THE F5
I need to load balance an application running on two pool members, 172.30.114.56:8080, 172.30.114.58:8080; However, on the two, i only get the page, "Tomcat is running".
However,the service only loads when i type either, 172.30.114.56:8080/arsys, or 172.30.114.58/arsys.
I need an irule that can add a string to the http response, such that, after the load-balancing decision,the string /arsys is added so, the page can load.
I don't know if the Stream Profile can work for this.
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 ";; } } The requirement is that the service is to be accessed over https,but i still want to test basic http vip for it,172.30.114.60, but its not loading currently to any of the servers,