Forum Discussion
DM_5174
Nimbostratus
Mar 10, 2010-- HELP PUTTING MULTIPLE IRULES TOGETHER
Hi All,
I was wondering if I can get the help of all the i-rule gurus here on this site.
We have 3 i-rules that i would like to put together as one, but for some reason
...
DM_5174
Nimbostratus
Mar 10, 2010Here is the i-rule...For some reason, I get a 404 and it does not look like it is working..
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/APP01*" -
"/APP02*" -
"/APP03*" -
"/APP004*" -
"/APP05*"
{
use pool APACHE-SERVER-POOL
}
default {
use pool WEBLOGIC-SERVER-POOL
}
}
if {[matchclass [IP::client_addr] equals $::ALLOW-DURING-MAINTENANCE]}{
pool WEBLOGIC-SERVER-POOL
} else {
HTTP::redirect "http://www.mainsite.com/maintenance/sched-maintenance.htm"
}
set stime 10
If the WEBLOGIC POOL is down, redirect to the emergency notification page
if { [active_members WEBLOGIC-SERVER-POOL] < 1 } {
HTTP::redirect "http://www.mainsite.com/maintenance/emergencydown.htm"
}
}
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