Quantcast
Channel: Nginx Forum - Nginx Mailing List - Russian
Viewing all articles
Browse latest Browse all 3102

Модуль ngx_http_access_module (no replies)

$
0
0
Здравствуйте!

Модуль 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';

Viewing all articles
Browse latest Browse all 3102


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>