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

slesh_219299's avatar
Aug 27, 2015

302 response Location header issue

Hello guys I am new here and to F5 devices . I had to set up Vip with service port 4712 and same for pool 4712 ( profile http and ssl profile is set for client ) rest is left by default .

And when i want to test my page :

F5 URL:

Back end (destination) URL:

---Back end http response: HTTP/1.1 302 Found Location:

---F5 response to browser HTTP/1.1 302 Found Location:

 F5 returns in response “Location” header the same that has been returned by back end
 But when i set apache reverse proxy 
 i got : 
 Apache proxy response to browser :

Back end http response: HTTP/1.1 302 Found Location:

Apache proxy response to browser HTTP/1.1 302 Found Location:

3 Replies

  • So just to clarify, you're getting http:// in 302 redirects to the client? Or is the entire URL incorrect?

     

  • Hi,

    F5 never change server response if you do not create a configuration to do that.

    so F5 does not "return Location header" but let it unchanged.

    If you want to replace location header, you must create a irule for that.

    when HTTP_RESPONSE {  
    
          Check if server response is a redirect  
         if { [HTTP::header is_redirect]} {  
    
             Do the update, replacing http:// with https://
            HTTP::header replace Location \  
               [string map -nocase "http:// https://" [HTTP::header value Location]]  
         }  
      } 
    
  • Hello all Thanks for fast replay . I fix it with simple rewrite ... :( But i will keep in mind Stanislas option .

     

    thank you guys .