Hi,

Just have  a doubt in map directive

map $http_user_agent $upstreamname {
default desktop;
~(iPhone|Android) mobile;
}

is correct ?

########################

or does the regex need to fully match the variable?

map $http_user_agent $upstreamname {
default desktop;
~*.*Android.*   mobile;
                ~*.*iPhone.*     mobile;
}





-- 
*Anoop P Alias*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to