Forum Discussion

Anthony_Vaz_547's avatar
Anthony_Vaz_547
Icon for Nimbostratus rankNimbostratus
Feb 12, 2005

BigIP rewriting cookies set by back end server

Hi guys

 

I hope you may be able to help with this request - hopefully it won't sound too silly- I'm quite new to irules and v9

 

 

We are using WebSphere 5.0.2.2 Appserver. If we place Big Ip infront of WebSPhere (which is listening on port 9043). The BigIP VS is on port 80.

 

 

When you go to a WebSphere page the WebSphere server sets a cookie to the client called WASReqURL. the at cookie shows the full URL requested including port 9043! The WebSphere application uses that cookie to base it locations from (ever so helpfully - grrrr!!). Because the VS is set to only listen on port 80 - the client ends up with page cannot be displayed, because its sending requests to port 9043.

 

 

The way around this I'm sure is to get BigIP to rewrite that Set Cookie command to take out the specified port but I don't know how to do this. I assume it will be with HTTP_Response event - but I cant find any examples of this. Does anyone have or know of anything similar

 

 

Many thanks to all in advance

 

Cheers
  • rapmaster_c_127's avatar
    rapmaster_c_127
    Historic F5 Account
    Hi!

     

     

    Can you give us an example of what the Set-Cookie: header looks like before the transformation, and what you'd like it to look like afterwards?

     

     

    Thanks!