IRule 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 virtual address is http://erpdev.abc.com

annd my 2 servers jde url is http://server1.abc.com/jde/E1Menu.maf and http://server2.abc.com/jde/E1Menu.maf.

First I want to make sure that the user load is balanced between these 2 servers and also when a user logs into http://erpdev.abc.com it should reslove to one of these servers but keep the server name hidden for eg it should navigate through jde as http://erpdev.abc.com/jde/E1Menu.maf, so its trasparent to the user what jde webserver he is connected to.

Any help in genrating a irule to accomplish this would be highly appreciated.

When you tested this, without an irule, did you see the URL change from http://erpdev.abc.com to http://serverX.abc.com…?

CB

If I don’t use an Irule it takes me to a Page not found.

Can you post your vip and pool configuration and the irule that you are currently using?

It may help is drive you to a solution you are looking for.

Thanks,

Chetan

VIP

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

Sorry send some wrong info before

Pool Members

1. 192.168.7.236:80 points to bwjasp5.ddrc.ads

2. 192.168.7.237:80 points to bwjasp5.ddrc.ads

3. 192.168.7.238:80 points to bwerpwebd2.ddrc.ads

4. 192.168.7.239:80 points to bwerpwebd2.ddrc.ads