CraigyB_172365
Jan 12, 2018Nimbostratus
HOST and partial path rewrite
Hi I am new to F5 and am trying to do a URL rewrite a chunk of the URL. I think I am on the right track but I just cannot make it work. Any help is really appreciated.
I just want to replace any request that contains the below retaining the remainder of the URL represented by *
with
http://10.10.10.10:9000/files/*
He is my effort at achieving this.
when HTTP_REQUEST { if { [HTTP::uri] starts_with "/info"}{ HTTP::redirect "http://[string map {https://my.server.net/info http://10.10.10.10:9000/jenkins_files} [string tolower[HTTP::host]][HTTP::uri]]" } }