Forum Discussion
Gill_32697
Nimbostratus
May 03, 2013Help simple irule
Hello, need best way to contruct a simple irule but that will allow me to add uri paths as the become active, what i have now is...
Im already doing a basic https redirect
HTTPS VIP is 10....
Kevin_Stewart
Employee
May 03, 2013So something like this?
when HTTP_REQUEST {
if { not ( [string tolower [HTTP::uri]] starts_with "/pod" ) } {
HTTP::uri "/default.html"
}
}
Assuming you've assigned the Pod5pool to the virtual server, this would (transparently) send any request URI that didn't start with "/pod" to default.html. In this case you also wouldn't have to edit the iRule when adding new pods.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects