Forum Discussion

Jeremy_Lanzarot's avatar
Jeremy_Lanzarot
Icon for Nimbostratus rankNimbostratus
Aug 17, 2006

URI based redirect

We have several applications running behind this particular VIP, all using the same pool. We migrated one application so that we required it use the same VIP but be redirected to another pool. The problem we were seeing is that between 20 and 40% of the time we would be presented with 404 errors when testing other applications on the VIP that were still supposed to use the old pool. I have been asked to see if the irule coding had anything to do with this failure becasue oddly enough, when the irule was removed the 404's on the other applications went away. We are using 4.2 PTF 10. Here is the irule:

 

 

if (http_uri starts_with "/Engineering/WeightCalc") {

 

redirect to "http://%h/WeightCalc/"

 

}

 

else if (http_uri starts_with "/WeightCalc") {

 

use ( asep702a_7000 )

 

}

 

else {

 

use ( efactory-http )

 

}

 

 

 

Thanks you.
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Could it be that the WeightCalc URI isn't valid on some of the hosts? This would make sense as to why you're seeing the problem when redirecting all requests to that URI if they match your criteria.

     

     

    Other than that, the rule looks fine.

     

     

    Colin