Forum Discussion

kdruet_49820's avatar
kdruet_49820
Icon for Nimbostratus rankNimbostratus
Feb 15, 2019

Filter / rewrite https request

unsure of the best practice to approach this, but - I need to do somthing like this (obviously this doesnt work, its just what I was thinking.

in a nutshell, I dont want the tomcat manager uri to work for hosts who connect via the F5 - I use an out of band network to reach the farm directly so dont require access to /manager via LTM


when HTTPS_REQUEST { 
   if { [HTTPS::host] equals "joespizza.org/SecretManagerURL" } 
   { 
        redirect to "https://www.joespizza.org"
      } 
      }
      

1 Reply

  • Here, hope it helps,

    when HTTP_REQUEST {
        if { [string tolower [HTTP::uri]] starts_with "/SecretManagerURL" } {
            HTTP::redirect "https://[HTTP::host]"
        }
    }