Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 78393 invoked from network); 13 Nov 2010 06:23:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 06:23:21 -0000 Received: (qmail 30414 invoked by uid 500); 13 Nov 2010 06:23:51 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 30295 invoked by uid 500); 13 Nov 2010 06:23:51 -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 30287 invoked by uid 99); 13 Nov 2010 06:23:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 06:23:50 +0000 X-ASF-Spam-Status: No, hits=4.7 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christoffer.buchholz@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 06:23:44 +0000 Received: by qyl33 with SMTP id 33so1804666qyl.11 for ; Fri, 12 Nov 2010 22:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=t2carzNleICHHuNY/Xz655WHqTw0ab4eM8xcEU3RVEE=; b=WFzSmFoFDwOypRUAPMUYesBeknzsSnMGgD+0NwwxDpUxbCR65MAOR90wbv/ZFoE4xv cIzkttPBj0ak8g0NIddGne644WbPHgjZJeuyTuxGPy2lxAuInxYqT0H5k30+k0sZKraP Xk1OVevvyrKaYdhhRwC2coMBMgqcjnwmYMttM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=in4mlBDG9VEIBPRp4ygE0l33iytZxkzVuQjrGKtLF1CFDumsNaq0L6NL0rTb8na0IF +L42ilrhrsngWVT3FHqCIDgb2EIqFfAghg0NSJIWGd0RYqGYmpx0wjiMG88SHtg96XUf lRgLXKOkreCTZl4ZTFqQv1pcbfyN0BALc9OsU= Received: by 10.229.211.71 with SMTP id gn7mr2693950qcb.209.1289629402173; Fri, 12 Nov 2010 22:23:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.249.83 with HTTP; Fri, 12 Nov 2010 22:23:01 -0800 (PST) In-Reply-To: References: From: "christoffer.buchholz@gmail.com" Date: Sat, 13 Nov 2010 07:23:01 +0100 Message-ID: Subject: Re: apache vhost, couchdb vhost and rewrite To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016362848486895710494e93e1a --0016362848486895710494e93e1a Content-Type: text/plain; charset=UTF-8 I have CouchDB version 1.0.1 installed. local.ini: [vhosts] ;example.com = /database/ chrisbuchholz.dk = /chrisbuchholzname/_design/chrisbuchholz.name/_rewrite On Sat, Nov 13, 2010 at 5:01 AM, Benoit Chesneau wrote: > On Friday, November 12, 2010, christoffer.buchholz@gmail.com > wrote: > > I am curious. Shouldnt the added vhost in local.ini turn up in > > Futon->Configuration? I cant see it there, so maybe - just maybe, it > doesnt > > get "applied". I experienced this with changing the bind_adresse. I had > to > > change it via http PUT before couchdb noticed the change. I believe it is > a > > known bug on Ubuntu? > > > > On Fri, Nov 12, 2010 at 8:47 PM, christoffer.buchholz@gmail.com < > > christoffer.buchholz@gmail.com> wrote: > > > >> I first tried changing the vhost entry in couchdb to localhost, didnt > work. > >> Then i changed it back to chrisbuchholz.dk and added ProxyPreserveHost > on > >> to my virtualhost in apache. Didnt work either. Cant believe no one, out > of > >> all the couchdb developers, havent had this problem them self. > >>Cou > >> How would one go about setting up a domain to point to a couchapp of not > >> this way? > >> > >> > >> On Fri, Nov 12, 2010 at 8:00 PM, Randall Leeds >wrote: > >> > >>> Ok, then. Wrong idea. > >>> > >>> I'm not an expert in rewrites and vhosts. I can't remember if the > >>> CouchDB vhost is keyed off the Host header or something else. > >>> If apache and couch are on the same box maybe try localhost in the > >>> CouchDB vhost rule or set the ProxyPreserveHost directive[1] in > >>> apache. > >>> > >>> -Randall > >>> > >>> [1] > http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypreservehost > >>> > >>> On Fri, Nov 12, 2010 at 10:42, christoffer.buchholz@gmail.com > >>> wrote: > >>> > I just tried removing the port, so my vhost entry in local.ini states > " > >>> > chrisbuchholz.dk = /chrisbuchholzname/_design/ > >>> chrisbuchholz.name/_rewrite", > >>> > but that didnt seem to fix it either. > >>> > > >>> > > >>> > On Fri, Nov 12, 2010 at 7:35 PM, Randall Leeds < > randall.leeds@gmail.com > >>> >wrote: > >>> > > >>> >> Ill double check later, but I don't remember needing the port number > in > >>> the > >>> >> CouchDB vhost. > >>> >> On Nov 12, 2010 8:01 AM, "christoffer.buchholz@gmail.com" < > >>> >> christoffer.buchholz@gmail.com> wrote: > >>> >> > Hey guys, > >>> >> > > >>> >> > On the CouchDB on my server, I have a CouchApp placed at > >>> >> > /chrisbuchholzname/_design/chrisbuchholz.name with rewrite-index > at > >>> >> > _rewrite/. I now want my domain chrisbuchholz.dk to point to that > >>> >> CouchApp. > >>> >> > > >>> >> > On my server I use apache2 and manage all my domains as > virtualhost. > >>> So I > >>> >> > have set up a proxy for chrisbuchholz.dk that points it to the > >>> CouchDB, > >>> >> so > >>> >> > that the CouchDB vhost can grab it. I did it like this: > >>> >> > > >>> >> > > >>> >> > ServerAdmin christoffer.buchholz@gmail.com > >>> >> > ServerName chrisbuchholz.dk > >>> >> > ServerAlias www.chrisbuchholz.dk > >>> >> > ProxyPass / http://localhost:5984/ > >>> >> > ProxyPassReverse / http://localhost:5984/ > >>> >> > ErrorLog /srv/chrisbuchholz/www/chrisbuchholz.dk/logs/error.log > >>> >> > CustomLog > >>> >> > /srv/chrisbuchholz/www/chrisbuchholz.dk/logs/access.logcombined > >>> >> > > > what is the couchdb version? in which section did you put the vhost ? > > -benoit > --0016362848486895710494e93e1a--