Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 29ED668AB for ; Fri, 8 Jul 2011 15:35:19 +0000 (UTC) Received: (qmail 14767 invoked by uid 500); 8 Jul 2011 15:35:17 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 14742 invoked by uid 500); 8 Jul 2011 15:35:16 -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 14734 invoked by uid 99); 8 Jul 2011 15:35:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 15:35:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 15:35:10 +0000 Received: by bwj24 with SMTP id 24so2694404bwj.11 for ; Fri, 08 Jul 2011 08:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=VgptGv3UXX0UBogK9ydAQS1hnhkmvWrcto3VG8xN0wc=; b=AyG/bkpV5CTGVRqv5Ptl/Sg+QscGJ6PSpMOgOK2cCusQbotSm6WfFQghCfVJ+JP3eE GkzNSWItxgk+vyYa9EktszUADT6IW7AbCBSI4OGXl6Yj4czKUR8nF2veuFmiIxEXJGNL irukutGhckqc5IELIZ6SFZIxfbtIacq9uMENQ= MIME-Version: 1.0 Received: by 10.204.40.193 with SMTP id l1mr424797bke.361.1310139288625; Fri, 08 Jul 2011 08:34:48 -0700 (PDT) Received: by 10.204.15.72 with HTTP; Fri, 8 Jul 2011 08:34:48 -0700 (PDT) In-Reply-To: References: Date: Fri, 8 Jul 2011 17:34:48 +0200 Message-ID: Subject: Re: global rewriter From: Benoit Chesneau To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Jul 8, 2011 at 5:30 PM, Jonathan Geddes wrote: > CouchDB users, > > I'm working on a couchapp, and up untill now, a single rewriter on a sing= le > database, coupled with a vhost has been all I need. > > However, as the complexity of the app grows, I'm starting to need additio= nal > databases. Now I need a rewriter that spans multiple databases... > > Is there a good way to do this within couchdb? I suppose I could set up > multiple vhosts, but that's not optimal. Can a rewriter in one database > point to end points in another database somehow? > Yes, it's possible. you have to set secure_rewrites to false in the settings and then you can use relative paths to go in other db: { "from": "/some/path", "to":"../../../somedb" } - beno=EEt