jwhitene
Jul 31, 2013Nimbostratus
http::path trailing slash
iRule for a port 443 virtual server with ssl.
when HTTP_REQUEST {
if { [HTTP::path] starts_with "/GoogleAltLogin-2.0.7" } {
pool googleAltLogin
} elseif { [HTTP::path] starts_with "/banner-mobileserver" } {
pool MobileServer
} elseif { [HTTP::path] starts_with "/banner-mobileserver/" } {
pool MobileServer
} else {
pool HTTP_80
}
}
This works: https://mysite/banner-mobileserver/ - It correctly chooses the "MobileServer" pool, and I am able to see a 'welcome to grails' page.
This does not work: https://mysite/banner-mobileserver - It appears to be using the "else" choice and using pool HTTP_80
If I bypass the load balancer and do WGET's locally on the server, it works with or without a trailing slash, so it is for sure the F5.
How can I make the F5 use the "MobileServer" pool for a URL that either has, or does not have, a trailing slash?