Forum Discussion

khoutman_235081's avatar
khoutman_235081
Icon for Nimbostratus rankNimbostratus
Dec 07, 2015

Issues with pool redirect

We're trying to move a website from on prem to a cloud provider 1 page at a time and decided that trying to do everything on the F5 would be the best way to do it. So I setup a test environment with a pool redirect through irules for the first page we want to move (page /abc)-

when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/abc" }{
pool pool_cloud}}

The pool redirect works great, the problem we're running in to now is when a user goes to http://mywebsite.com/abc and then back to http://mywebsite.com it keeps trying to load the main page in the cloud which isn't ready yet and not the original on-prem page even though DNS points at the on-prem page.

I don't know if there's some sort of caching that's causing this or a setting on F5 that could help.

1 Reply

  • FYI we updated the irule to below and in testing it looks good so far. We're still doing some more tests but hopefully this solved our issue-

    when CLIENT_ACCEPTED {
       set default_pool [LB::server pool]
    }
    when HTTP_REQUEST {
        if { [string tolower [HTTP::path]] starts_with "/abc" }{
        pool pool_cloud
      }
        else {
        pool $default_pool
      }
    }