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;