Forum Discussion
Christian_15126
Nimbostratus
Jan 06, 2013irule to redirect info.blah.edu catches all paths, not just the three defined
Match subdomain.domain, with a "/", b_path, c_path, d_path; Then A/B load balance 60/40 percent ratio.
Created 12/11/2012 Christian Henderson
Last edited 12/11/12
when RULE_INIT { ...
Christian_15126
Nimbostratus
Jan 07, 2013Here are the logs. As you can see info.blah.edu, info.blah.edu/degres, and info.blah.edu/index.htm match as expected, and the 60/40 A/B load balancing also works as expected, but the irule is also matching anything past info.blah.edu, such as info.blah.edu/fake.htm, or info.blah.edu/mba.htm which is not in the match criteria.
tail -f /var/log/ltm | grep -v member
Jan 7 07:15:30 bpeca03-f501dev err mcpd[3534]: 01020066:3: The requested rule (irule_info.blah_301_controller) already exists in partition Dev.
Jan 7 07:15:30 tmm info tmm[5250]: Rule irule_info.blah_301_controller : initializing ...
Jan 7 07:15:30 tmm1 info tmm1[5251]: Rule irule_info.blah_301_controller : initializing ...
Jan 7 07:16:39 tmm info tmm[5250]: Rule irule_info.blah_301_controller : redirect FROM 10.50.8.12:63030 /mba.htm TO http://degrees.blah.edu/
Jan 7 07:16:39 tmm info tmm[5250]: Rule irule_info.blah_301_controller : A count is 1 with ratio 6
Jan 7 07:16:54 tmm info tmm[5250]: Rule irule_info.blah_301_controller : redirect FROM 10.50.8.12:63030 /blah.htm TO http://degrees.blah.edu/
Jan 7 07:16:54 tmm info tmm[5250]: Rule irule_info.blah_301_controller : A count is 2 with ratio 6
Jan 7 07:17:14 tmm info tmm[5250]: Rule irule_info.blah_301_controller : redirect FROM 10.50.8.12:63030 /degrees TO http://degrees.blah.edu/
Jan 7 07:17:14 tmm info tmm[5250]: Rule irule_info.blah_301_controller : A count is 3 with ratio 6
Jan 7 07:17:34 tmm info tmm[5250]: Rule irule_info.blah_301_controller : redirect FROM 10.50.8.12:63030 /fake.htm TO http://degrees.blah.edu/
Jan 7 07:17:34 tmm info tmm[5250]: Rule irule_info.blah_301_controller : A count is 4 with ratio 6
Jan 7 07:18:09 tmm info tmm[5250]: Rule irule_info.blah_301_controller : redirect FROM 10.50.8.12:63030 /degrees TO http://degrees.blah.edu/
Jan 7 07:18:09 tmm info tmm[5250]: Rule irule_info.blah_301_controller : A count is 5 with ratio 6
Jan 7 07:18:15 tmm info tmm[5250]: Rule irule_info.blah_301_controller : redirect FROM 10.50.8.12:63030 / TO http://degrees.blah.edu/
Jan 7 07:18:15 tmm info tmm[5250]: Rule irule_info.blah_301_controller : A count is 6 with ratio 6
Jan 7 07:18:23 tmm info tmm[5250]: Rule irule_info.blah_301_controller : redirect FROM 10.50.8.12:63030 /blah.htm TO http://onlinedegrees.blah.edu/
Jan 7 07:18:23 tmm info tmm[5250]: Rule irule_info.blah_301_controller : B count is 7 with max 10
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