Forum Discussion
hooleylist
Aug 04, 2010Cirrostratus
Can you remove the * from the datagroup entries? Those will be interpreted literally--not as wildcards.
Are you on 9.4.4 or higher? If so, can you also remove the $:: prefix from MobileUserAgents?
Else, can you add logging to the rule and check /var/log/ltm for the output:
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: UA: [HTTP::header "User-Agent"]"
if {[matchclass [HTTP::header "User-Agent"] contains $::MobileUserAgents] } {
HTTP::redirect "http://m.holidayextras.co.uk[HTTP::uri]"
log local0. "[IP::client_addr]:[TCP::client_port]: UA: [HTTP::header "User-Agent"], redirecting"
}
}
Aaron