Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 52863 invoked from network); 12 Nov 2010 19:00:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Nov 2010 19:00:03 -0000 Received: (qmail 88175 invoked by uid 500); 12 Nov 2010 19:00:30 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 88106 invoked by uid 500); 12 Nov 2010 19:00: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 88098 invoked by uid 99); 12 Nov 2010 19:00:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 19:00:29 +0000 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of randall.leeds@gmail.com designates 209.85.161.52 as permitted sender) Received: from [209.85.161.52] (HELO mail-fx0-f52.google.com) (209.85.161.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 19:00:24 +0000 Received: by fxm15 with SMTP id 15so1283397fxm.11 for ; Fri, 12 Nov 2010 11:00:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=lZEGbzSn0ltmdl/RtSzk3cd/Zc0573H22nHfW2jPUi8=; b=cNKmbQWE8JlBnIb0TPp7TwGYDGRcpSfOIwNz5CzB0gtUCtz7Zihw8nzkIECtJijsuD 9NoGcAEnRX3PdiBaUplbFVc5C9xjBAppcPGVhb75fqD8yBc0e40sk+xqkuQyEwL//psK xl101e28YLCWmflYDRuqKXt9A7btaDKxeZ7S8= 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=rTU5hLuWBcHV6su7jowdMzJrwX/aWvSTq234bXjR++9G16RFCUhywfa6usjM12uHQa uxbbB7EEXilze9NkEHS9fbboV1kGwqDoR5Ip/fFfoRS6EpNbaoDrjLXIR9g2PJsMQqkf PzEQ5nrLJY0528nqWCVU0JTMXeC3jdy+Mmm4Q= MIME-Version: 1.0 Received: by 10.223.115.6 with SMTP id g6mr1855445faq.128.1289588402855; Fri, 12 Nov 2010 11:00:02 -0800 (PST) Received: by 10.223.79.13 with HTTP; Fri, 12 Nov 2010 11:00:02 -0800 (PST) In-Reply-To: References: Date: Fri, 12 Nov 2010 11:00:02 -0800 Message-ID: Subject: Re: apache vhost, couchdb vhost and rewrite From: Randall Leeds To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 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 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 >> > >> > Order allow,deny >> > Allow from all >> > >> > >> > >> > Then I have added a vhost entry to local.ini: >> > >> > chrisbuchholz.dk:5984 = /chrisbuchholzname/_design/ >> > chrisbuchholz.name/_rewrite >> > >> > But it doesn't work. >> > When I access chrisbuchholz.dk, it just gives me CouchDB - not my >> CouchApp. >> > (you can try yourself) >> > >> > What am I missing and what am I doing wrong? >> > >> > >> > Sincerely, >> > Christoffer Buchholz >> >