From couchdb-user-return-241-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Thu Apr 17 12:08:18 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 13430 invoked from network); 17 Apr 2008 12:08:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Apr 2008 12:08:18 -0000 Received: (qmail 86662 invoked by uid 500); 17 Apr 2008 12:08:19 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 86502 invoked by uid 500); 17 Apr 2008 12:08:19 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 86493 invoked by uid 99); 17 Apr 2008 12:08:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 05:08:18 -0700 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS,URIBL_RHS_DOB,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ralf.nieuwenhuijsen@gmail.com designates 66.249.82.233 as permitted sender) Received: from [66.249.82.233] (HELO wx-out-0506.google.com) (66.249.82.233) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 12:07:33 +0000 Received: by wx-out-0506.google.com with SMTP id h30so52169wxd.21 for ; Thu, 17 Apr 2008 05:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=BZGP3EQJtICw6BMWW4lgzTfaaliC93yHVwdUD6eUCgw=; b=gZP89MJwcaXzygRQLflItnvWlHn39JO5YDu543ir6+qQIKIHvNPQ1+4Yk8I6/8i7qunHO0mVU5coXg3OxH2COt4kAiMlSyq9NQUzWwCK4mr7yLHRZCKjy6kiPK3QCxN30edVplil58hiQPY1YgiZZmh7x7KwgitoTr/HhDLJbbE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=K3CBPiIUq6B3NgeKP+pQ8Z+LhSDDd9COy37+4BRpf5NI+4KYjBpK7aq1vPGGfnVWnaMmNeemyK9AOAa3MMbXFlK75aqWyXzRKLAbbkdxC5AS4uzM1ZS3zYN3JhKdBLU+QBcbsCwVj0LDQ2Cgmi3BXZAMIvHKLY/AnMbvAbrzj1Q= Received: by 10.114.150.1 with SMTP id x1mr1262590wad.144.1208434065602; Thu, 17 Apr 2008 05:07:45 -0700 (PDT) Received: by 10.115.88.16 with HTTP; Thu, 17 Apr 2008 05:07:45 -0700 (PDT) Message-ID: <41fe564f0804170507i7dd08a48x5a030b4c757142b8@mail.gmail.com> Date: Thu, 17 Apr 2008 14:07:45 +0200 From: "Ralf Nieuwenhuijsen" To: couchdb-user@incubator.apache.org Subject: Re: problem with couchdb behing nginx In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org My first guess would be that this is related to most browsers not allowing cross-site scripting. But looking at the log, the request actually takes place.. You want to make sure, not only to proxy one-way, but also to reverse-proxy. (that made all the difference for me proxying on apache2) Perhaps you should check the javascript-error-console and see if there is anything there. Does manually retrieving the list of databases work? http://127.0.0.1:5984/_all_dbs If so, the error has to do with proxying and cross-site-scripting security of the browser. Greetings, Ralf 2008/4/17, Benoit Chesneau : > On Thu, Apr 17, 2008 at 10:20 AM, Benoit Chesneau w= rote: > > Hi, > > > > I would like to use couchdb (last trunk) behind nginx so I use this > > configuration : > > server { > > listen 80; > > server_name couchdb; > > location / { > > proxy_pass http://127.0.0.1:5984; > > proxy_redirect off; > > proxy_set_header Port $proxy_port; > > proxy_set_header X-Real-IP $remote_addr; > > proxy_set_header X-Forwarded-For $proxy_add_x_forwarded= _for; > > } > > } > > > > But it doesn't work. I can access to futon, and other pages, but db > > aren't listed and basically I can't do anything on the db. Same resu= lt > > whe I use a python script that acess to couchdb via nginx. Is there > > something I missed ? It's really weird anyway. > > > > - beno=EEt > > > > > couchdb logs : > > http://www.friendpaste.com/xKYcgNLJ > > -- > - beno=EEt >