Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 88935 invoked from network); 5 Jul 2009 18:23:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jul 2009 18:23:06 -0000 Received: (qmail 62209 invoked by uid 500); 5 Jul 2009 18:23:15 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 62139 invoked by uid 500); 5 Jul 2009 18:23:15 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 62129 invoked by uid 99); 5 Jul 2009 18:23:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jul 2009 18:23:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jchris@gmail.com designates 209.85.212.200 as permitted sender) Received: from [209.85.212.200] (HELO mail-vw0-f200.google.com) (209.85.212.200) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jul 2009 18:23:04 +0000 Received: by vwj38 with SMTP id 38so2771808vwj.13 for ; Sun, 05 Jul 2009 11:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=/fw5b64uDFJ9/vQlKQzvnAR2LhuOCfhAeo01nNrB9Eg=; b=KPrqSd3EjT13v21DJJ8NX4Y/0HJ32K1ty7Gjl6nDEYnk5o13g6/r/CnN6qejhi8G8B 9gDe+51gQlVK8g1kMP59xv1NzWDy8qSEpg4ZAJER8hK45oVF3jZar23HCp+KQRWU70hT 89vNaINwPXMQGkWaRa89SHgOMnRUnAGvErgnk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=UM7nX/yEaryLHmZ6KU3vuhbniuTOrRiUtpGJh7DwsgX8zzwQes1IIPLpBd4n2Bbb9E Li8yGFTD+jhHwq1sGzxgOsiqGq03FmbUI8v/ACjYLnnNQ7y0ieuH6nG1U0os+iKPatkh Zm6kfitJUtVVqAkdAj1tRrInuLziQadkoQHlY= MIME-Version: 1.0 Sender: jchris@gmail.com Received: by 10.220.84.202 with SMTP id k10mr7574253vcl.77.1246818163264; Sun, 05 Jul 2009 11:22:43 -0700 (PDT) In-Reply-To: <20090705154343.GB24849@tumbolia.org> References: <6EA12004-CCBE-47F2-BE78-4C3D6F72FD2F@jasondavies.com> <21614A96-E6D2-45A3-BF7F-9D1379D84782@jasondavies.com> <528EC433-F1B6-4F05-8B11-74A1FC7272F7@jasondavies.com> <20090704220857.GF17906@tumbolia.org> <20090704222104.GI17906@tumbolia.org> <9028F8DC-73FE-4306-8EF9-69E62EA35809@jasondavies.com> <20090705154343.GB24849@tumbolia.org> Date: Sun, 5 Jul 2009 11:22:43 -0700 X-Google-Sender-Auth: d18a9450240818de Message-ID: Subject: Re: Rewriting URLs From: Chris Anderson To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Jul 5, 2009 at 8:43 AM, Noah Slater wrote: > On Sun, Jul 05, 2009 at 10:25:50AM +0100, Jason Davies wrote: >> I made handle_rewrite_req so it can be configured as [httpd] default_handler. > > Fantastic! > >> [couch_httpd_rewrite] >> {"jason.mydomain.com", 80, "/"} = {"mydb", "rootapp"} >> {"jason.mydomain.com", 80, "/blog"} = {"mydb", "blogapp"} > > Looks good to me! I think we should keep in mind that we don't want to break the ability to replicate. Maybe a /db/_replicate channel that we don't break or something... I do like all the power these give us. Maybe it's worth thinking about applying all the rewrite magic on a non-5984 port so we don't have to worry about not breaking the database. Complicated. > >> I think people will probably want some kind of wildcard matching too though. > > What's the use case? > > Best, > > -- > Noah Slater, http://tumbolia.org/nslater > -- Chris Anderson http://jchrisa.net http://couch.io