regex named captures patch

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


The patch against 0.8.20. Usage examples:

    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;


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- 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/attachments/20091114/7725c9bc/attachment.obj>


More information about the nginx mailing list