regex named captures patch

Igor Sysoev is at
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.named.captures.txt
Type: application/octet-stream
Size: 47381 bytes
Desc: not available
URL: <>

More information about the nginx mailing list