regex named captures patch

Igor Sysoev is at rambler-co.ru
Sat Nov 14 01:04:48 MSK 2009


Патч для 0.8.24. Примеры использования:

    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;



-- 
Игорь Сысоев
http://sysoev.ru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.named.captures.txt
Type: application/octet-stream
Size: 47381 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20091114/ebf5acb6/attachment.obj>


More information about the nginx-ru mailing list