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

Art_Sholty_1024's avatar
Art_Sholty_1024
Icon for Nimbostratus rankNimbostratus
Apr 22, 2014

URL pattern match and substitution

We are starting to use iRules to collapse our quantity of VIPs/Points of entry for lower environments. Where in the past we would create VIPs for each application, our porferenece now is to use iRules and host headers to halt the sprawl. Our goal is to create a single iRule that can use a portion of the hostname to route traffic to an associated pool. For example, if the URL is www.ENV1.weightwatchers.com, the traffic would need to be routed to the associated pool_www.ENV1.weightwatchers.com. Is there a way to create a variable from the ENV1 name and pass that into a matching pool so I can have a single universal iRule as opposed to creating one iRule per environment?