From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <46D83980.4070101@tangramltd.com> Date: Fri, 31 Aug 2007 18:53:36 +0300 From: Slava Dubrovskiy Organization: Tangram User-Agent: Thunderbird 2.0.0.6 (X11/20070804) MIME-Version: 1.0 To: Sysadmins@lists.altlinux.org X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ua2.tanhost.com X-AntiAbuse: Original Domain - lists.altlinux.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - tangramltd.com X-Source: X-Source-Args: X-Source-Dir: Subject: [Sysadmins] =?utf-8?b?0L3QsNGB0YLRgNC+0LnQutCwIG5naW54?= X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: slava@tangramltd.com, ALT Linux sysadmin discuss List-Id: ALT Linux sysadmin discuss List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2007 15:53:47 -0000 Archived-At: List-Archive: Здравствуйте. Установил nginx как фронтенд к апачу. Теперь в логе апача IP всегда 127.0.0.1. Я так понимаю надо настроить real_ip. Добавил в конфиг set_real_ip_from 0.0.0.0; real_ip_header X-Real-IP; И не помогает. Подскажите, как правильно настроить real_ip в nginx? ЗЫ. Пока выкрутился правкой конфига апача на предмет формата лога - LogFormat "%{X-Real-IP}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%{X-Real-IP}i %l %u %t \"%r\" %>s %b" common │ -- WBR, Dubrovskiy Vyacheslav