From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00, NORMAL_HTTP_TO_IP autolearn=ham version=3.2.5 Date: Thu, 14 Jan 2010 01:07:25 +0200 From: Michael Shigorin To: sisyphus@lists.altlinux.org Message-ID: <20100113230725.GO11686@osdn.org.ua> Mail-Followup-To: sisyphus@lists.altlinux.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.1i Subject: Re: [sisyphus] Q: OPTIONS requests from localhost in Apache access_log X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: shigorin@gmail.com, ALT Linux Sisyphus discussions List-Id: ALT Linux Sisyphus discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2010 23:07:43 -0000 Archived-At: List-Archive: List-Post: On Thu, Jan 14, 2010 at 03:55:48AM +0600, Michael Pozhidaev wrote: > Странными они кажутся потому, что приходят с localhost nginx перед apache? Если да -- надо включить mod_realip в apache-1.3 (в нашей сборке давно есть, надо только сконфигурировать) либо mod_rpaf в apache-2.2. Примерно так: --- RealIP localhost xfwd RealIP a.b.c.d xfwd --- httpd.conf --- location / { proxy_pass http://127.0.0.1/; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; } --- nginx.conf -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/