Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 42613 invoked from network); 21 Jan 2009 20:48:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jan 2009 20:48:36 -0000 Received: (qmail 56240 invoked by uid 500); 21 Jan 2009 20:48:34 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 56210 invoked by uid 500); 21 Jan 2009 20:48:34 -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 56199 invoked by uid 99); 21 Jan 2009 20:48:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jan 2009 12:48:34 -0800 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.97.50.139] (HELO jan.prima.de) (83.97.50.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jan 2009 20:48:26 +0000 Received: from [192.168.1.100] (f053011114.adsl.alicedsl.de [::ffff:78.53.11.114]) (AUTH: LOGIN jan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Wed, 21 Jan 2009 20:48:02 +0000 Message-Id: From: Jan Lehnardt To: user@couchdb.apache.org In-Reply-To: <7060483c0901211205u3aaeda0blbddb478fc8507bc@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: JS Test Errors with Apache virtual host + reverse proxy + couchdb Date: Wed, 21 Jan 2009 21:47:31 +0100 References: <53b9568a0901202244r855e7d6ma5e7fbc8f76a5818@mail.gmail.com> <7060483c0901210014p7c404682ye91f5e258a9c3f52@mail.gmail.com> <98CE2761-591D-41F4-A0EC-4E4817B9CF67@apache.org> <7060483c0901211205u3aaeda0blbddb478fc8507bc@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org Thank you Patrick! Cheers Jan -- On 21 Jan 2009, at 21:05, Patrick Antivackis wrote: > Hi Jan, > You are welcome > I updated the wiki to tell minimum configure options and minimum > apache > version > > > > 2009/1/21 Jan Lehnardt > >> Hi Patrick, >> >> Thanks! I added the snippet to the wiki. If anyone >> feels like adding some more explanation, that'd be >> nice :) >> >> http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy#preview >> >> Cheers >> Jan >> -- >> >> On 21 Jan 2009, at 09:14, Patrick Antivackis wrote: >> >> Here is my config.All futon's tests are ok : >>> >>> >>> ServerAdmin webmaster@dummy-host.example.com >>> DocumentRoot "/opt/websites/web/www/dummy" >>> ServerName couchdb.localhost >>> AllowEncodedSlashes On >>> ProxyRequests Off >>> >>> Order deny,allow >>> Deny from all >>> Allow from 88.164.1.48 >>> Allow from 127.0.0.1 >>> >>> ProxyPass / http://localhost:5984/ nocanon >>> ProxyPassReverse / http://localhost:5984/ >>> ErrorLog "logs/couchdb.localhost-error_log" >>> CustomLog "logs/couchdb.localhost-access_log" common >>> >>> >>> Hope it helps >>> >>> 2009/1/21 Jason Huggins >>> >>> On Tue, Jan 20, 2009 at 6:31 PM, Glenn Rempe wrote: >>>> >>>>> Hi, >>>>> >>>>> I am experimenting with CouchDB and wanted to setup a virtual >>>>> host and >>>>> reverse proxy in my apache server that would expose couchdb to >>>>> the net, >>>>> >>>> and >>>> >>>>> allow me to easily add apache basic auth on top (with the hope >>>>> that some >>>>> couchdb ruby clients support basic auth). >>>>> >>>>> However, when I set this up I discovered that many of the futon >>>>> JS tests >>>>> fail when run on the proxied url, but all pass when hitting the >>>>> same >>>>> >>>> exact >>>> >>>>> couchdb install via a direct url. >>>>> >>>> >>>> I had this problem, too. I had to add "AllowEncodedSlashes On" to >>>> my >>>> virtual host config to get proxing working correctly. >>>> >>>> >>>>> I did not see anything about this in the bug Jira. On initial >>>>> >>>> examination >>>> >>>>> this appears to be related to url escaping in the js tests. >>>>> >>>> >>>> Yup. Sorry, though, for not documenting/blogging/sharing my fix >>>> before. >>>> :-/ >>>> >>>> When I get the chance, I'll publish a slimmed downed and working >>>> version of my vhost file that fixes this bug, but until then... try >>>> added "AllowEncodedSlashes On" right inside your VirtualHost >>>> declaration. >>>> >>>> cheers, >>>> hugs >>>> >>>> >>