For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Rene_Bader_1308's avatar
Rene_Bader_1308
Icon for Altostratus rankAltostratus
Aug 06, 2014

ProxyPass with Parameters in URI?

All,

 

I've trying to set up a ProxyPass scenario. The user types https://mainurl and it will be redirected to some internal servers https://internal/somedirectory?parameter1&parameter2

 

As per default parameters within an URI want work with ProxyPass so I tried to implement some irule:

 

when HTTP_Request {

 

if { [HTTP::uri] equals "/" }{

 

HTTP::uri "/somedirectory?parameter1&parameter2"}}

 

This is working so far, but the server responses with a 302 redirect and the browser will go to

 

https://mainurl/somesessionstring?parameter3&parameter4

 

Is there a way I can manipulate the HTTP resonse so the User will only see https://mainurl in the address bar?

 

Thanks

 

René

 

1 Reply

  • John_Alam_45640's avatar
    John_Alam_45640
    Historic F5 Account

    Not sure how this will interact with proxypass but give it a shot:

    when HTTP_RESPONSE {
      if { [HTTP::status] equals "302" } {
          set redir_location [getfield [HTTP::header Location] "?" 1]
          HTTP::header replace Location $redir_location
      }
    }