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 EB078F3E4 for ; Fri, 31 May 2013 21:01:42 +0000 (UTC) Received: (qmail 57303 invoked by uid 500); 31 May 2013 21:01:41 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 57233 invoked by uid 500); 31 May 2013 21:01:41 -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 57225 invoked by uid 99); 31 May 2013 21:01:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 May 2013 21:01:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of snbartell@gmail.com designates 209.85.217.175 as permitted sender) Received: from [209.85.217.175] (HELO mail-lb0-f175.google.com) (209.85.217.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 May 2013 21:01:34 +0000 Received: by mail-lb0-f175.google.com with SMTP id v10so2086704lbd.6 for ; Fri, 31 May 2013 14:01:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=4Q7SYjR5FkqONe9dsyU2vT5veqKA3GIsFFAkxD5mcFA=; b=HuWb1rXLmvdNN4noAGjG5ZynalBBSRVHVxxZqDsn9TukEgL5zUnozJ0y2vSXdvXhH+ FVgrAbAaRvAU149yFP5XIz5md4uH6WDImCxUUUfBhjBj8+5UVDZi9kQNzdEbGIU/6YHH KJE9gp99Op4o5DGZwaNUM4kI1JhwHlfGCtKlxPpV436+H/tenz3saI1sw1eVm0Plv1gS RmOfX3j+uCEqoIvbwCFGsdP/B8ZX3vMXlpyBaVpr2JHPs4YJn1wMx39BHpT4FOOLGa1E lvorn2xStOw8di6nAK3yiRzOd1b6AN4JtyUNc9egofL4gi7WjFQBWNCwxDLRR3JfLAp8 5wnw== X-Received: by 10.152.87.227 with SMTP id bb3mr2032199lab.51.1370034073308; Fri, 31 May 2013 14:01:13 -0700 (PDT) Received: from [10.69.41.36] (static-108-23-87-130.lsanca.fios.verizon.net. [108.23.87.130]) by mx.google.com with ESMTPSA id w20sm12345186lbi.14.2013.05.31.14.01.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 14:01:12 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: virtualizing databases From: Stephen Bartell In-Reply-To: Date: Fri, 31 May 2013 14:01:15 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <186FB955-3BDC-488C-8F6F-CFE0B1664090@gmail.com> References: <8AC696E8-CFF7-4783-B5F1-8722A844B7AE@gmail.com> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1503) X-Virus-Checked: Checked by ClamAV on apache.org I originally stated that I want to do this redirection at the couch = level. Adam and Simon both mentioned that this is probably best done = outside of couch. I think I've seen the light. Often times I still need = access to the original database. If I am proxying at the couch level, = then I can never get to that original database. If I needed to access a = redirected database, then I would need to go through the proxy. But if I = need to access the original database for whatever reason, I could still = log into the couch server and access it. Aliasing, remote or local, seems to be useful only when one version of = that database is exposed at a time. On May 31, 2013, at 1:34 PM, Benoit Chesneau = wrote: > On Fri, May 31, 2013 at 9:53 PM, Stephen Bartell = wrote: >> Thanks guys. >>=20 >> Benoit, it looks like the alias improvement you are talking about is = couchdb-1736? It still looks like its baking. What I need is something a = little bigger than aliases though. I'd like the ability to redirect to a = remote Couch. >=20 > You can probably use the proxy handler in couch to do that >=20 > [httpd_global_handlers] > remotedb =3D {couch_httpd_proxy, handle_proxy_req, > <<"http:/host:port/remotedb">>} >=20 > - benoit