А РХИВ :: 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:46:21 -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=UMzw2PKraeMgbOHlU37uEcR27dSDkNCt8vy02QFVi7g=; b=dquHZwWhc0zpNyGKYusb1Q9alOE3S5j9Wr3mGHfFKocRc1PuXFqfgf1MMq2cBhNoNP mmQEWl9n4WvSDflBm8/MF9PuzkSJVGNKu2Bj0m76uPQsCcWXwubyUw5jNvOdSZh6tuAU 0uIb2c2i5Al6XA+G4QzojydUiU3lte/5BHndQ=
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=UmRrXOB1qNGG1VyHYwJVuPE1weL6yZVbb4s5RUbsrgKdiN77o3A1/B1R4TQsRqJB0O /6PFV1J5gyCXaWGlMXKRZLfE7a3jW1v0dtIrCj92YhRvKxZQzv2RTExK0Tx8UeB0I9od ZV+QFOFjW2jMVFW8VHF1dXj6UQ48EzH4k+1C8=
In-reply-to: <d3a243980908201625u705dbe8fxd36effb04f65079b@xxxxxxxxxxxxxx >
References: <d3a243980908201625u705dbe8fxd36effb04f65079b@xxxxxxxxxxxxxx >
Роман wrote:
> В целях чистоты логов от своих похождений хочется запретить
> логирование запросов со своего ипа.
> Можно ли такое сделать? Если да то как?
>
server {
if ($remote_addr != 1.2.3.4) {
access_log logs/mylog.log;
}
}