Welcome! Log In Create A New Profile

Advanced

Re: $referer_host

May 29, 2011 01:28PM
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

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

$referer_host

Alexandr Gomoliako May 29, 2011 06:36AM

Re: $referer_host

Igor Sysoev May 29, 2011 01:28PM

Re[2]: $referer_host

Михаил Монашёв May 29, 2011 01:34PM

Re: $referer_host

Alexandr Gomoliako May 29, 2011 01:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 137
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready