Abed_AL-R_26070
Jul 12, 2018Nimbostratus
iRule URI matching issue
Hi
I'm trying to match first term but whatever I do it is not match
this iRule check the URI and sends the request to the appropriate pool
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/lmsserver" } {
pool PLMS_Pool
event disable
}
if { [string tolower [HTTP::path]] starts_with "/oauth" } {
pool PLMS_Pool
}
if { [string tolower [HTTP::path]] starts_with "/lms/sso" } {
set [http::path "/lmsserver"]
pool PLMS_Pool
}
if { [string tolower [HTTP::path]] starts_with "/lms/rest/ext/oauth2/token" } {
set [http::path "/lmsserver"]
pool PLMS_Pool
}
if { [string tolower [HTTP::path]] starts_with "/dtpcms" } {
pool PLMS_Pool
}
if { [string tolower [HTTP::path]] starts_with "/httppush" } {
pool Push_Pool
}
if { [string tolower [HTTP::path]] starts_with "/admin" } {
pool PTEACH_Pool
}
if { [string tolower [HTTP::path]] starts_with "/lms" } {
pool PTEACH_Pool
}
if { [string tolower [HTTP::path]] starts_with "/rsp" } {
pool PTDWH_Pool
}
if { [string tolower [HTTP::path]] starts_with "/dwh" } {
pool PTDWH_Pool
}
if { [HTTP::uri] equals "/" } {
HTTP::redirect "http://[HTTP::host]/lms"
pool PTEACH_Pool
}
}
If I go to /lmsserver instead of mapping me to PLMS_Pool , it is mapping me to PTEACH_Pool
why is that ?