Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 37343 invoked from network); 18 Oct 2010 18:45:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Oct 2010 18:45:53 -0000 Received: (qmail 74418 invoked by uid 500); 18 Oct 2010 18:45:51 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 74387 invoked by uid 500); 18 Oct 2010 18:45: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 74379 invoked by uid 99); 18 Oct 2010 18:45:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 18:45:51 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,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 bchesneau@gmail.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-gw0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 18:45:45 +0000 Received: by gwj22 with SMTP id 22so753370gwj.11 for ; Mon, 18 Oct 2010 11:45:24 -0700 (PDT) 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 :content-transfer-encoding; bh=4l0bnMSS2ftdOtFpGNHiTvUKWWwOL4pSJ8ZovqPjd8I=; b=eA2aDUKjb8oCs//fcWEY5B/4A55jTk1t4/NXMlYTp2OzCPnVcSaG+cEw/6ZXe3oma8 7CvXdMuITwxGk51zkQOeME2/4BXgqdHfZ5JjIqNIcjBVpuXn5q1Xxvp01anTAw+zXjwF kSGVjggvqHhBBTuZJIvLl+v9ZFD2A1I3OVafs= 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:content-transfer-encoding; b=hjo7D9gTqWDEXUP/Hax+9yAr9N6Hor6/BwV0OYiI3VcX71w2UQpuByh2MuHlSTok7X y60aES9nwW0BvB1TRm+FY7UJF0e1/NmlJg97bVomNcrQ+NCGEsWn6Mpbh9k9fgEN5brd LNwKVopNwd4nv99Ss3yHCpiUG5uUksCVEwMVU= MIME-Version: 1.0 Received: by 10.42.138.4 with SMTP id a4mr1247607icu.67.1287427522348; Mon, 18 Oct 2010 11:45:22 -0700 (PDT) Received: by 10.231.58.199 with HTTP; Mon, 18 Oct 2010 11:45:22 -0700 (PDT) In-Reply-To: References: Date: Mon, 18 Oct 2010 20:45:22 +0200 Message-ID: Subject: Re: VHosts and Rewrite rules From: Benoit Chesneau To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Oct 18, 2010 at 8:37 PM, Ido Ran wrote: > OK, there is some progress. > > I've set this vhost: > localhost:5984 =3D /todos/_design/app/_rewrite > > and it is working all right. > > From what I understand, because vhosts work in HTTP level and because the= y > search for HOST value in the header they are not affected by the path > requested. So the only values I can put in the left-hand side are host na= me > and port. > So now every request to http://localhost:5984 effectively goes to > http://localhost:5984/todos/_design_app/_rewrite which is a good thing. > > New quesitons: > 1. How can I support multiple databases in this way? > 2. How can I make request to http://localhost:5984 go to > http://localhost:5984/todos? > oh now I realize that the feature I told you is in trunk. In trunk vhost system has been improved to support paths. - beno=EEt