Forum Discussion

Jo_Anglin_5148's avatar
Jo_Anglin_5148
Historic F5 Account
Jan 15, 2009

uri redirect

I am a newbie to irule and would like some assistance in setting up an irule.

 

Currently I have a VS with a pool with 5 pool members and I am trying to set up an irule with will allow each client depending on their uri to access content on different servers.

 

 

amrvweb04 {

 

/7.2/*

 

/72Salesdemo/*

 

/PURV14944/*

 

/ops*

 

}

 

amrvweb03 {

 

/72Demo/*

 

/72dev/*

 

/PURV144945/*

 

/PURV161183/*

 

/PURV950053/*

 

/RV102535/*

 

/v72/*

 

/xRV950002/*

 

}

 

amrvweb01 {

 

/AUMON/*

 

/PURV154230/*

 

/RV648689/*

 

/RV900283DP/*

 

/RV910097/*

 

/RV950010/*

 

/RV950046/*

 

/RV950072/*

 

/RV950074/*

 

/RV950075/*

 

/RV950076/*

 

/MAINT/*

 

/nuTest/*

 

/nuTESTRS/*

 

/PURV144944/*

 

/PURV550587/*

 

/purv950058/*

 

/purv950056M/*

 

/RV100069/*

 

/RV144991/*

 

/RV154329/*

 

/RV161292/*

 

/RV161293/*

 

/rv550587/*

 

/rv648331/*

 

/rv648340/*

 

/rv651499/*

 

/rv900283/*

 

/RV950049/*

 

/rv950062/*

 

/rv950064/*

 

/RV950066/*

 

/RV950068/*

 

/RV950070/*

 

/RV950071/*

 

}

 

amrvweb05 {

 

/nosso/*

 

/xRV144991/*

 

}

 

amatlvsi03 {

 

/5.2_rv950007/*

 

/5._RV950048/*

 

/dev_5.2/*

 

}

 

 

 

when HTTP_REQUEST {

 

if {[matchclass [HTTP::uri] contains $::amrvweb04] } {

 

node 66.33.17.7

 

} else {

 

if { [matchclass [HTTP::uri] contains $::amrvweb03] } {

 

node 66.33.17.8

 

} else {

 

if { [matchclass [HTTP::uri] contains $::amrvweb01] } {

 

node 66.33.14.9

 

} else {

 

if { [matchclass [HTTP::uri] contains $::amrvweb05] } {

 

node 66.33.14.10

 

} else {

 

if { [matchclass [HTTP::uri] contains $::amatlvsi03] } {

 

node 66.33.14.11

 

} else {

 

node 66.33.14.12

 

}

 

}

 

}

 

}

 

}

 

}

 

 

 

Any pointers?

10 Replies

No RepliesBe the first to reply