nginx-0.9.0

Igor Sysoev igor at sysoev.ru
Mon Nov 29 22:40:27 MSK 2010


On Tue, Nov 30, 2010 at 12:39:17AM +0800, David Yu wrote:

> On Mon, Nov 29, 2010 at 11:36 PM, Igor Sysoev <igor at sysoev.ru> wrote:
> 
> > Changes with nginx 0.9.0                                         29 Nov
> > 2010
> >
> >    *) Feature: the "keepalive_disable" directive.
> >
> >    *) Feature: the "map" directive supports variables as value of a
> >       defined variable.

map $one      $two {
    default   $three;    # $three
    1         $four;     # $four
    ...
}

> >    *) Feature: the "map" directive supports empty strings as value of the
> >       first parameter.

map $one      $two {
    ""        none;     # ""
    ...
}

> >    *) Feature: the "map" directive supports expressions as the first
> >       parameter.

map "$one$some"  $two {
    ...
}

> Are there any examples using the new map features? (couldn't find it in
> http://wiki.nginx.org/HttpMapModule).


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list