Forum Discussion
Your request is not very clear to me. Should the new code only be executed for host www.swbc.com? That is what I have assumed below.
I don't know what you are asking when you mention "/payment????"
The lines I have commented out are superfluous, because the first two cases will always pick them up.
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]]) equals "www.swbc.com" {
switch -glob -- [string tolower [HTTP::uri]] {
"*paymentprocessorv3*" -
"*paymentprocessorakc*"
"/paymentprocessorv3/creditcard.asmx" -
"/paymentprocessorv3/creditcard.asmx?wsdl" -
"/paymentprocessorv3/ach.asmx" -
"/paymentprocessorv3/ach.asmx?wsdl" -
"/paymentprocessorakc/ach.asmx" -
"/paymentprocessorakc/ach.asmx?wsdl" -
"/paymentprocessorakc/creditcard.asmx" -
"/paymentprocessorakc/creditcard.asmx?wsdl"
{
pool IIS_ECM.SWBC.com_pool
}
"/holtcat" {
HTTP::redirect https://focusnet.swbc.com/fnFProvid...efitType=N
}
"/akcelerant/" -
"/idsakcelerant/" -
"/idsakcelerantmtg/" -
"/lmakcelerant/" {
pool Test-SWBC-Migration1
}
else {
pool IIS_SWBC.com_pool
}
}
}
}