nginx-0.8.25

Igor Sysoev is at rambler-co.ru
Tue Nov 17 13:18:23 MSK 2009


On Tue, Nov 17, 2009 at 03:19:44AM +0100, Dinh Pham wrote:

> Hi Igor,
> 
> Could you kindly explain these features in more details?
> 
> Thanks a lot,
> 
> Dinh
> 
> 
> Igor Sysoev wrote:
> > Changes with nginx 0.8.25                                        16 Nov 
> > 2009
> > 
> > 
> >     *) Feature: regular expression named captures.

    server {
        server_name  ~^(www\.)?(?<name>.+)$;
        root  $name;
    }

    location ~^(?<script_name>/.+\.php)(?<path_info>.*)$ {
        fastcgi_param  SCRIPT_FILENAME  /path/to/php$script_name;
        fastcgi_param  PATH_INFO        $path_info;

> >     *) Feature: now URI part is not required a "proxy_pass" directive if
> >        variables are used.

    proxy_pass  http://$backend;

Before you should add URI part:
    proxy_pass  http://$backend$request_uri;

> >     *) Feature: now the "msie_padding" directive works for Chrome too. 

msie_padding on; # default

The directive adds lines to the default error pages to increase their size
to more than 512 bytes:

<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->


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





More information about the nginx mailing list