Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 23056 invoked from network); 30 Jan 2009 15:26:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jan 2009 15:26:45 -0000 Received: (qmail 25938 invoked by uid 500); 30 Jan 2009 15:26:43 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 25902 invoked by uid 500); 30 Jan 2009 15:26:43 -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 25891 invoked by uid 99); 30 Jan 2009 15:26:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jan 2009 07:26:43 -0800 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adamjpetty@gmail.com designates 209.85.220.20 as permitted sender) Received: from [209.85.220.20] (HELO mail-fx0-f20.google.com) (209.85.220.20) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jan 2009 15:26:35 +0000 Received: by fxm13 with SMTP id 13so264839fxm.11 for ; Fri, 30 Jan 2009 07:26:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=1t30lKguPIIKTePiOusiiek9LDhAXoBBMKeMXmOHAH4=; b=AbWBtz4DcMfSGAcNYuOauljkNQ8mWmTc+Fh+vzxJ2+FnMO0znJeHLuMGmdZ2lZRm9i BQ3dal+E29e9rzHnEEHU16eLIFyej9IbBLmn6DKhH4+TAXgRi0MMbhLz4A8qO3ypvmHA bxp73WrtLc9Bc/LhH+jSCXStGCFIYOoEqoKC8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=dhpuTDVOx3Qgh5sv588JCvHPoyQqdI9MBJjXqo/1QtOmu1MMPfVM22sg9C0DRFZo9Q iRKTopgaNHKLBRZZWIj86DBzDIIiyhg6gdaEg9fEPt6ucwaKvOf9CtOgsy1w9raA+VqH 3BvrrM6aBTPeD5du2rKRnIe7MI7+ak1uWBp5I= MIME-Version: 1.0 Received: by 10.181.226.2 with SMTP id d2mr460306bkr.204.1233329173952; Fri, 30 Jan 2009 07:26:13 -0800 (PST) In-Reply-To: <7060483c0901300656v57c3496ch9ef0f63861f965b2@mail.gmail.com> References: <6a8c90ba0901300636y1c1c90edi3f6be5061e909c92@mail.gmail.com> <7060483c0901300656v57c3496ch9ef0f63861f965b2@mail.gmail.com> Date: Fri, 30 Jan 2009 10:26:13 -0500 Message-ID: <6a8c90ba0901300726o1a246f3cx5ea26fa5ef349b89@mail.gmail.com> Subject: Re: Apache CouchDB Reverse Proxy From: Adam Petty To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001636c5a4014df79c0461b4d31a X-Virus-Checked: Checked by ClamAV on apache.org --001636c5a4014df79c0461b4d31a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Patrick, Thanks for the quick response! So the reverse proxy section - should that replace my "default" file in sites-available - or be a new site? ServerAdmin webmaster@dummy-host.example.com DocumentRoot "/opt/websites/web/www/dummy" (I'm assuming this is just a generic site root - doesn't matter here?) ServerName couchdb.localhost (can this be the external server ? ) AllowEncodedSlashes On ProxyRequests Off KeepAlive Off Order deny,allow Deny from all 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 I guess I'm not seeing how to set Apache up to point to an external physical couchdb/webserver (but in the local domain), or if Apache is local also - how does Apache get the call of "http://localhost:5984/" vs. mochiweb? Anyway - any more info here would help me out alot. Again - I know these are probably rudimentary questions.... On Fri, Jan 30, 2009 at 9:56 AM, Patrick Antivackis < patrick.antivackis@gmail.com> wrote: > Hi Adam, > If i well understand, you want to access couchdb via a url like > http://localhost/couchdb , through a reverse proxy. > Ithink it will not work as some futons javascript are calling absolute uri, > so the js will send to the reverse proxy an url like : > http://localhost/couchdbname/..... that will not be caught by the reverse > proxy and so not passed to couchdb > > Patrick > > > > 2009/1/30 Adam Petty > > > Hey all, > > > > I'm new to both CouchDB and Apache and have been looking everywhere for > > tutorials on Reverse Proxy-ing and Couch, and can't seem to get to where > I > > need to be. > > > > I checked out the page > > http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy > > > > But that doesn't make sense to me as I don't see where I could alter the > > site file to set an alias to "http://localhost:5984/" to " > > http://localhost/couch" which then is proxied to the former. Also > > > > I tried > > http://qooxdoo.org/contrib/project/couchdb > > but so far, that just gets me a new "couch" site - but proxying isn't > > working. > > > > Looking everywhere - everyone has a different approach for Reverse > > Proxy-ing > > - and most at the Ubuntu Forums say to set "Allow All" to true in the > > proxy.conf file - which I KNOW has to be bad. > > > > The Apache site talks about settings - but as its far and away > > the most different and seemingly complicated - I wasn't sure where to > start > > for that one. > > > > Any help or links other than the above would be most appreciated. > > > > Thanks, > > > > --Adam > > > --001636c5a4014df79c0461b4d31a--