use "string tolower" is not match string case
ex.
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1} {
switch -glob [string tolower [HTTP::uri]] {
"/" {
HTTP::respond 200 content [ifile get cproxy_index.html] "Content-Type" "text/html"
log local0. "URI: [HTTP::uri]"
}
"/503/img_logo.gif" {
HTTP::respond 200 content [ifile get img_logo.gif] "Content-Type" "image/jpeg"
log local0. "URI: [HTTP::uri]"
}
"/503/logo_nomuraUN170-16.gif" {
HTTP::respond 200 content [ifile get logo_nomuraUN170-16.gif] "Content-Type" "image/jpeg"
log local0. "URI1: [HTTP::uri]"
}
default {
HTTP::respond 200 content [ifile get logo_nomuraUN170-16.gif] "Content-Type" "image/jpeg"
log local0. "URI2: [HTTP::uri]"
}
}
}
}
this case when uri="/503/logo_nomuraUN170-16.gif" is not match ,
default case "log local0. "URI2: [HTTP::uri]" output
whenever change
switch -glob [string tolower [HTTP::uri]] ==>switch -glob [HTTP::uri]
then
when uri="/503/logo_nomuraUN170-16.gif" is match "/503/logo_nomuraUN170-16.gif"
and log local0. "URI: [HTTP::uri]" output
string tolower is not use.