Forum Discussion
Yado_52136
Nimbostratus
Nov 18, 2007About the parallel processing of iRules
iRules-A and iRules-B are set as VirtualServerA and B, respectively.
The loop of the communication A is carried out by iRules-A (while sentence), and FLG of a global variable is made t...
Joe_Hsy_45207
Nimbostratus
Nov 20, 2007Oops - posted prematurely. The iRule could be something like the following:
when HTTP_REQUEST {
if { ([HTTP::path] ends_with "stop") } {
set ::allow 0
}
elseif { ([HTTP::path] ends_with "go") } {
set ::allow 1
}
else {
if { ($::allow == 0) } {
HTTP::redirect http://somewhereelse.com
}
}
}
Then the app server when send a http request to the same virtual server with the path ending with "stop" or "go" to control the flow.
I would recommend that you use iControl to do this though as iControl is meant to give you programmtic control of virtual servers. However, your approach is certainly interesting. 8-)
//Joe
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