Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
regex named captures patch
Патч для 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
Attachment:
patch.named.captures.txt
Description: Binary data
|