Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re[2]: $referer_host
 
 
Здравствуйте, Igor.
>> Модуль, добавляющий переменную $referer_host, может быть кому-то еще
>> понадобится:
>> https://github.com/zzzcpan/ngx_http_referer_host_module
> В 0.9.6+ подобная функциональность реализуется через map:
> map $http_referer            $referer_host {
>     default                  "";
>     ~^https?://(?<H>[^:/]+)  $H;
> }
Мощно!
-- 
С уважением,
 Михаил                          mailto:postmaster@xxxxxxxxxxxxx
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
 
 |