Nginx Map Multiple Parameter Input

Igor Sysoev igor at sysoev.ru
Fri Oct 12 14:24:35 UTC 2012


On Oct 12, 2012, at 18:21 , rahul286 wrote:

> I will debug my config again. Thanks.
> 
> By the way, does map support regex in input parameter? Now or in future?

Changes with nginx 0.9.6                                         21 Mar 2011

    *) Feature: the "map" directive supports regular expressions as value of
       the first parameter.

http://nginx.org/en/docs/http/ngx_http_map_module.html

map $http_user_agent $mobile {
    default       0;
    "~Opera Mini" 1;
}


--
Igor Sysoev
http://nginx.com/support.html



More information about the nginx mailing list