А РХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
Re: Блокировка логов по i p
To : nginx-ru@xxxxxxxxx
Subject : Re: Блокировка логов по i p
From : Konstantin Svist <fry.kun@xxxxxxxxx >
Date: Thu, 20 Aug 2009 16:50:13 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=dHxbB+IVhrYVTuWl9Q5PHDqiX4lCiE7tCuUsNGpWEnI=; b=Y+hgg0Rv8++fjSmSNdiqVZaABJ5u0MY2AlL5kAdg7/QJtmY7HhulZ1iG62C9kce4XX atDs2D1GBs05bmjkZ+3zRMVvkluDIA3JrQJIsYCQze7muu56fr1nU5g6datDjguUynqJ 3sEvu//kDVELDRh/2ZOKC3gMrZJnJkGil2rf4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=qzypNWrK0IlSe5gc+UzxSu30id33FUy0JK7SDf/co6FBsQ0ma3s2/l6HlQsPWrTWx8 XTBawwgnsVj3wLCjSCevtL7xWzKkStSWxTtFck1E+5VOX75MtzcrSo1zHoxc9jcX8QX4 CFR0YrXBC/T44IgHll19WVnqVSuuvyfs6Pmds=
In-reply-to: <4A8DE04D.9090805@xxxxxxxxx >
References: <d3a243980908201625u705dbe8fxd36effb04f65079b@xxxxxxxxxxxxxx > <4A8DE04D.9090805@xxxxxxxxx >
Konstantin Svist wrote:
> Роман wrote:
>
>> В целях чистоты логов от своих похождений хочется запретить
>> логирование запросов со своего ипа.
>> Можно ли такое сделать? Если да то как?
>>
>>
>
> server {
> if ($remote_addr != 1.2.3.4) {
> access_log logs/mylog.log;
> }
> }
>
>
>
а точнее нет... можно только в location
server {
location / {
if ($remote_addr != 1.2.3.4) {
access_log logs/mylog.log;
}
}
}