Welcome! Log In Create A New Profile

Advanced

geo with if and access_log

Андрей Василишин
November 09, 2012 05:52PM
Здравствуйте!
Есть такая конструкция, где в geo.access.log почему-то ничего не
пишется, с invalid.access.log - все нормально.

geo $geo {
default 0;
include geo.txt;
}
...

location / {
valid_referers none server_names;
if ($invalid_referer) {
access_log /var/log/nginx/invalid.access.log main;
}
if ($geo) {
access_log /var/log/nginx/geo.access.log main;
}
}

в geo.txt записи вида:

4.4.4.4 1;
8.8.8.8 1;
Кто виноват и что делать?

--
WBR, Andrey Vasilishin CDIG1-UANIC, CDIG1-RIPE

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

geo with if and access_log

Андрей Василишин November 09, 2012 05:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 127
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