Forum Discussion
smalte_85868
Nimbostratus
Mar 06, 2009IRule help
I have JDedwards installed on 2 servers under Oracle application server.
I have created a virtual server that point to pool of IP addresses pointing to these 2 servers.
My virtua...
smalte_85868
Nimbostratus
Mar 06, 2009VIP
erpdev.ddr.com
Address : 192.168.7.224 Port 80
Default Pool: erpdev
Pool members :
1. 192.168.7.236:80 points to bwjasp5.ddrc.com
2. 192.168.7.236:80 points to bwjasp5.ddrc.com
3. 192.168.7.236:80 points to bwerpwebd2.ddrc.com
4. 192.168.7.236:80 points to bwerpwebd2.ddrc.com
Irule: (Manual LB , kinda forcing it to work)
BEGIN
when RULE_INIT {
set ::lb_counter 1
log local0. "Rule Starting lb_counter is $::lb_counter"
}
when HTTP_REQUEST {
log local0. "HTTP Request counter is $::lb_counter"
if { $::lb_counter == 1 } {
log "Logging to server1"
HTTP::redirect http://bwjasp5.ddrc.ads/jde/owhtml
HTTP::header replace Location [string map {bwjasp5.ddrc.ads erpdev.ddr.com} [HTTP::header Location]]
set ::lb_counter 2
return
} elseif { $::lb_counter == 2 } {
log local0. "Logging to server2"
HTTP::redirect http://bwerpwebd2.ddrc.ads/jde/owhtml
HTTP::header replace Location [string map {bwerpwebd2.ddrc.ads erpdev.ddr.com} [HTTP::header Location]]
set ::lb_counter 1
}
}
END
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
