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, 2010This is what I have so far. It seems to work half way, but for some reason when I add a "/APPxx" after going to
http://www.myportal.com/app01, it does not redirect me to the apache server pool. I get a "404" error from the LTM.
What is working is, when I connect from an IP address listed in the data class, I get a 404 (this is good), and if I am coming from any other IP address not defined in this group, I get the "sched-maintenace.htm" page. This simulate that during our maintenance window, all connecting external users should see the maintenace page, however QA users connecting from one of our subnets defined in the data class group should not see the sched maintenance window. They are sent to the WEBLOGIC pool, and if the servers in this pool is down, they will see the 404, if it is up, they will see the regular login page.
Please help with why I can not use the /APPxx string to get sent to the APACHE pool.
when HTTP_REQUEST {
set stime 10
switch -glob [string tolower [HTTP::uri]] {
"/APP01*" -
"/APP02*" -
"/APP03*" -
"/APP004*" -
"/APP05*"
{
use pool APACHE-SERVER-POOL
}
}
Check if client IP is in the datagroup
if {[matchclass [IP::client_addr] equals $::ALLOW-DURING-MAINTENANCE]}{
pool WEBLOGIC-SERVER-POOL
} else {
HTTP::redirect "http://www.mainsite.com/maintenance/sched-maintenance.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