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

MeAndMyBIGIP_60's avatar
MeAndMyBIGIP_60
Icon for Nimbostratus rankNimbostratus
Jun 21, 2010

HTTP::URI redirect to another Pool

Trying to use the sample code here (http://devcentral.f5.com/wiki/default.aspx/iRules/HTTP__uri.html) to do something that should be very simple:

 

 

when HTTP_REQUEST {
  if { [HTTP::uri] ends_with "content1" } {
     pool content_pool_1
  } elseif { [HTTP::uri] starts_with "/abc" } {
     pool abc_servers
 }
}
The idea being that:

 

 

for users browsing to www.website.com/content1 >> they go to the content_pool_1 servers, everything else goes to content_pool_2 servers

 

 

But after I enable the rule, I keep getting 404 errors in server in content_pool_2.

 

 

The Virtual Server currently points to content_pool_2... how do I/do I need to somehow point the Virtual Server to both content_pool_1 and content_pool_2?

 

 

Right now, content_pool_1 isn't assigned to a Virtual Server... does it need to be?

 

 

Doesn't seem like this should be so difficult...

 

47 Replies

  • It's a BIGIP LTM 3600, it's not hiding on top of Resources. From Resources, I have

     

     

    Default Pool

     

     

    Default Persistence

     

     

    Fallback Persistence

     

     

    iRules

     

     

    HTTP Class Profiles

     

     

  • Weird, can you reselect Virtual Server type Standard and hit Update to see if anything changes?
  • No change. It's the same, in fact I went through all the options in the same drop down menu with 'Standard', and I wasn't able to find Stream Profile. Funnily enough, I can create a Stream profile, but I don't see anyway of associating it with the VS.

     

     

    r_dynamo
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Are you viewing the advanced settings of the VS properties? Do you have a full LTM license or LBL or Edge?

     

     

    Can you try adding the default stream profile to the virtual server using tmsh and reply back with any errors you see?

     

     

    tmsh

     

    modify ltm virtual my_vs profiles add { stream }

     

     

    Aaron
  • Apologies, so sorry for wasting time. Yes, I found the setting under Advanced configuration. I'll try the stream profile, and iRule provided by 'Steve', and get back soon.

     

    r_dynamo
  • ReadResponse() failed: The server did not return a response for this request.

     

     

    This is the response I receive by configuring a stream profile for VS 443 along with the corresponding stream iRule, and applying the other rewrite/iRule for VS 80 as per earlier suggestion.
  • Can something to the effect of cookie based load balancing be achieved without SSL termination from the F5? Can a OneConnect profile be of use here?