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...