https to http rewrite
3 TopicsAN 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.215Views0likes1CommentiRule syntax change in upgrade to 11.5.0
Hello all, I have upgraded our LTM from 11.4.3 to 11.5.0 at request of F5 support to fix an unrelated issue we were having. However, this seems to have broken one of the iRules we have in place that is used for the F5 to front http based servers as https using a very useful DevCentral post - https://devcentral.f5.com/wiki/iRules.HTTPS-offload-rewriting.ashx Since the upgrade to 11.5.0 and with this iRule assigned to my virtual server the connection fails with the following logged in the Local Traffic log - "Status Code 01220001 / TCL error: /Common/Rewrite-HTTP - Operation not supported (line 1) invoked from within "HTTP::is_redirect"" I have tried a bit of tweaking to get this working, predominately removing the HTTP::is_redirect references, but I cannot get the rule to behave as it did pre 11.5.0. Does anyone have an idea as to how I can make this 11.5.0 compliant? Many thanks, SjWSolved685Views0likes13CommentsHTTP redirect with URI replacement without using [http::host]
I am redirecting a https request when uri /ExampleWeb* is requested it is changed to /ExampleWeb/test* then is being redirected to http (all other uri will stay https). The issue I am having is that when it is being redirected using [http::host] the server in the pool doesn't have the host in its directory. So I would like to be able to redirect it to http but the only thing that stays is the uri (allowing the VIP to change the host). This is what I have currently which still keeps the http host. FYI the uri is case sensitivity so I can't use tolower. I don't know if this is the best way or to point it to a new pool and keep the uri. when HTTP_REQUEST { if {[HTTP::uri] contains "/ExampleWeb"}{ log "Requested URL is [HTTP::host][HTTP::uri]" HTTP::uri [string map {"/ExampleWeb" "/ExampleWeb/text"} [HTTP::uri]] HTTP::redirect "http://[HTTP::host][HTTP::uri]" } }401Views0likes4Comments