Welcome! Log In Create A New Profile

Advanced

Модуль ngx_http_access_module

August 14, 2013 01:43PM
Здравствуйте!

Модуль ngx_http_access_module

location / {
deny 192.168.1.1;
allow 192.168.1.0/24;
allow 10.1.1.0/16;
allow 2001:0db8::/32;
deny all;
}

Подскажите, пожалуйста, можно ли как-то получить флаг или переменную, срабатывания правила, запрещённой сети?

Что-то типа:

if ($deny_ip)
proxy_set_header Allow-Piring '1';
Subject Author Posted

Модуль ngx_http_access_module

Gurd August 14, 2013 01:43PM

Re: Модуль ngx http access module

Илья Шипицин August 14, 2013 01:50PM

Re: Модуль ngx http access module

Валентин Бартенев August 14, 2013 01:50PM

Re: Модуль ngx http access module

Gurd August 14, 2013 03:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready