On Sun, May 29, 2011 at 01:34:04PM +0300, Alexandr Gomoliako wrote:
> Модуль, добавляющий переменную $referer_host, может быть кому-то еще
> понадобится:
> https://github.com/zzzcpan/ngx_http_referer_host_module
В 0.9.6+ подобная функциональность реализуется через map:
map $http_referer $referer_host {
default "";
~^https?://(?<H>[^:/]+) $H;
}
--
Igor Sysoev