Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8078DEC09 for ; Fri, 1 Mar 2013 13:29:04 +0000 (UTC) Received: (qmail 92541 invoked by uid 500); 1 Mar 2013 13:29:03 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 92487 invoked by uid 500); 1 Mar 2013 13:29:02 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 92479 invoked by uid 99); 1 Mar 2013 13:29:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Mar 2013 13:29:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elisiano@gmail.com designates 74.125.83.43 as permitted sender) Received: from [74.125.83.43] (HELO mail-ee0-f43.google.com) (74.125.83.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Mar 2013 13:28:55 +0000 Received: by mail-ee0-f43.google.com with SMTP id c50so2424311eek.2 for ; Fri, 01 Mar 2013 05:28:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:date:in-reply-to:references :content-type:x-mailer:mime-version:content-transfer-encoding; bh=PslygQy4c7B35yg590TfSi5WSTovVN4KF8rhEviPoxI=; b=xkYQn1dmmyBhkj6SCCJUeARJ15ZHHG3mVtKDbKpWtdA5k5ODqILDgH3+D/YVS5m3Ud qgipzz7QSkuGKJSRVAZfOLJJtg3wUbOZhf7UvEuM7zYG/CSUP9tHyFpzEivFJGJIJ3JA XYFyOGkFQxZYBsmKVMWgWJxMocrhOsrWa9NCiW8N9/uZFkeOgnU3nkmzvQlptQfDyjb7 jWLfjkqLH3Y5PnH0psc3XI1jMf1avhwG0pJN8lwgh1O4WIJleTpn7Uu78WEVyettc8kq WWL0tZYKdWOaK3q4O4SOesQqPasczkfLR88q/aV/OAaEWd9yoXvpZSDfD86Gg1ywEYK8 lcKA== X-Received: by 10.14.225.72 with SMTP id y48mr7307806eep.45.1362144515046; Fri, 01 Mar 2013 05:28:35 -0800 (PST) Received: from [128.141.56.42] (pb-d-128-141-56-42.cern.ch. [128.141.56.42]) by mx.google.com with ESMTPS id a1sm17207447eep.2.2013.03.01.05.28.33 (version=SSLv3 cipher=RC4-SHA bits=128/128); Fri, 01 Mar 2013 05:28:33 -0800 (PST) Message-ID: <1362144512.1172.30.camel@localhost.localdomain> Subject: Re: Custom log format From: Elisiano Petrini To: user@couchdb.apache.org Date: Fri, 01 Mar 2013 14:28:32 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org As per http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers Apache set a X-Forwarded-For header with the IP address of the client. Now, how you can read this from CouchDB I have no idea. Cheers, Elisiano On Fri, 2013-03-01 at 16:13 +0300, Anthony Ananich wrote: > I was thinking on this as well, but here are also some disadvantages, > for sample I have to track user's public IP address for identifying > country of residence. That becomes impossible with proxying as far as > I know. > > On Fri, Mar 1, 2013 at 3:54 PM, Nils Breunese wrote: > > Anthony Ananich wrote: > > > >> CouchDB does not record logged in user, User Agent, etc. So I can > >> configure AWStats for sure, but that will not give me a chance to get > >> to know which browsers do users use. That's just one example. > > > > You could maybe use Apache httpd as a reverse proxy for CouchDB: http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy > > > > Nils.