Forum Discussion
Stanislas_Piro2
Dec 05, 2015Cumulonimbus
Hi,
the first condition will supersede next ones.
but you need to change pool to default pool if you want to force the mobile to be sent to the default pool ...
when CLIENT_ACCEPTED {
Save the name of the virtual server's default pool before it's change in this iRule
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::header User-Agent]] contains "mobile_agents" ] } {
if {([HTTP::cookie MobileOptOut] eq 1) || ([URI::query [HTTP::uri] MobileOptOut] eq 1)} { pool $default_pool } else { pool p-mobile-redirect }
}
}