Forum Discussion
pawel_01_133441
Nimbostratus
Jul 13, 2015Disable all policies after iRule execution - Multiple redirect/respond invocations not allowed
Hi,
I would like to prepare sorry page in iRule. I want to display sorry page only for IP address from internet. Below you can find iRule prepared so far:
when HTTP_REQUEST {
if { not ([class ...
Kevin_Stewart
Employee
Jul 13, 2015I believe policies happen before iRules, so the easiest solution would probably be to put everything in an iRule and not use the policies.
when HTTP_REQUEST {
if { not ( [class match [IP::client_addr] equals LOCAL_NET] ) } {
HTTP::respond 200 content "Service is not working'" Cache-Control "No-Cache" Pragma "No-Cache"
} else {
if { [string tolower [HTTP::uri]] equals "/foo" } {
HTTP::redirect "/bar"
}
}
}
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
