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 301AF9524 for ; Fri, 1 Mar 2013 14:24:32 +0000 (UTC) Received: (qmail 77004 invoked by uid 500); 1 Mar 2013 14:24:30 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 76963 invoked by uid 500); 1 Mar 2013 14:24:30 -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 76954 invoked by uid 99); 1 Mar 2013 14:24:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Mar 2013 14:24:30 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.220.173] (HELO mail-vc0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Mar 2013 14:24:24 +0000 Received: by mail-vc0-f173.google.com with SMTP id fy27so2016366vcb.32 for ; Fri, 01 Mar 2013 06:24:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-originating-ip:in-reply-to:references :from:date:message-id:subject:to:content-type:x-gm-message-state; bh=A0WUtbhEBVGUWNBlUmSmOSoghapBtdZmMbHEKNA5XIM=; b=C+wEu1OWpAsHGJ50SgAeq7SZhMOnCS86UbqspsMESwp/jQ+s8Dq3iDnBQG0POkqWl5 CTjFwdebEr3Up5PF4kaWB2pvLP23mkNQ0/C0zVifHFsBFco0hut+ls8utjqkh17r7Usv fUfkGyL0auywd9FmYd5tjmzZNBR3hCa4VcHnsR3Sdd7VdDI5PaFrKHdQOp1iH7W9LVP+ 9K2iIif3rYk3eTJvqIqvzhiZS6ozKAgG1U/114DgdsSahA8dfq7CExa0ue05i3AvE5R+ i3tIo+6e7Y6yC9yUoZHYwoOdXWWgQLb37H+jXwZS1mnAM7BWIy6/xToIqwwhC7dJsOwY wztw== X-Received: by 10.58.50.7 with SMTP id y7mr4241763ven.24.1362147841208; Fri, 01 Mar 2013 06:24:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.200.165 with HTTP; Fri, 1 Mar 2013 06:23:31 -0800 (PST) X-Originating-IP: [80.94.224.211] In-Reply-To: <1362144512.1172.30.camel@localhost.localdomain> References: <1362144512.1172.30.camel@localhost.localdomain> From: Anthony Ananich Date: Fri, 1 Mar 2013 17:23:31 +0300 Message-ID: Subject: Re: Custom log format To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmamdEUYnCkofLLCzd0pEvbEhUj17HCtsenG25Aqpw0uiXaL1+Nfo6KMqycfahKUI+FRvyU X-Virus-Checked: Checked by ClamAV on apache.org That could become a part of solution. Thank you! On Fri, Mar 1, 2013 at 4:28 PM, Elisiano Petrini wrote: > 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. > >