need help to combine new irule with original
need help adding second (bottom irule) into master irule (top irule). ...FYI default pool for vip is IIS_ECM.SWBC.com_pool
Should proccess section with /payment???? and sent uri path to pool IIS_ECM.SWBC.com_pool.
Then else proccess new irule section and send to pool Test-SWBC-Migration1.
Then follow the elseif to focusenet and if nothing else pool IIS_SWBC.com_pool
! below are my irule.
----------------------------------------
This is the original master rule
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]]) equals "www.swbc.com" and
([string tolower [HTTP::uri]] contains "paymentprocessorv3") ||
([string tolower [HTTP::uri]] contains "paymentprocessorakc") ||
([string tolower [HTTP::uri]] equals "/paymentprocessorv3/creditcard.asmx") ||
([string tolower [HTTP::uri]] equals "/paymentprocessorv3/creditcard.asmx?wsdl") ||
([string tolower [HTTP::uri]] equals "/paymentprocessorv3/ach.asmx") ||
([string tolower [HTTP::uri]] equals "/paymentprocessorv3/ach.asmx?wsdl") ||
([string tolower [HTTP::uri]] equals "/paymentprocessorakc/ach.asmx") ||
([string tolower [HTTP::uri]] equals "/paymentprocessorakc/ach.asmx?wsdl") ||
([string tolower [HTTP::uri]] equals "/paymentprocessorakc/creditcard.asmx") ||
([string tolower [HTTP::uri]] equals "/paymentprocessorakc/creditcard.asmx?wsdl") } {
pool IIS_ECM.SWBC.com_pool
}
elseif { [string tolower [HTTP::host]] equals "www.swbc.com" and [string tolower [HTTP::uri]] equals "/holtcat" } {
HTTP::redirect https://focusnet.swbc.com/fnFProvid...efitType=N
}
else {
pool IIS_SWBC.com_pool
}
}
---------------------------------------------------------------------------------------------------------------------------------------------------------
This is the new irule i need to merge with the original master irule
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/akcelerant/" -
"/idsakcelerant/" -
"/idsakcelerantmtg/" -
"/lmakcelerant/" {
pool Test-SWBC-Migration1
}
}