Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 54631 invoked from network); 4 Jul 2009 22:21:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jul 2009 22:21:25 -0000 Received: (qmail 10829 invoked by uid 500); 4 Jul 2009 22:21:35 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 10762 invoked by uid 500); 4 Jul 2009 22:21:35 -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 10752 invoked by uid 99); 4 Jul 2009 22:21:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Jul 2009 22:21:35 +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: local policy) Received: from [80.68.94.123] (HELO tumbolia.org) (80.68.94.123) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Jul 2009 22:21:24 +0000 Received: from nslater by tumbolia.org with local (Exim 4.69) (envelope-from ) id 1MNDbU-0004xr-5D for dev@couchdb.apache.org; Sat, 04 Jul 2009 23:21:04 +0100 Date: Sat, 4 Jul 2009 23:21:04 +0100 From: Noah Slater To: dev@couchdb.apache.org Subject: Re: Rewriting URLs Message-ID: <20090704222104.GI17906@tumbolia.org> Mail-Followup-To: dev@couchdb.apache.org References: <879778450905061254s7bd5365etf82d85126471a24@mail.gmail.com> <879778450905071033n33151a5cs439e7912c9e21fbd@mail.gmail.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Noah: Awesome User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Jul 04, 2009 at 03:16:42PM -0700, Chris Anderson wrote: > Eventually this could be implemented in CouchDB itself, with a table > to lookup app-rewrites for various subdomains or ports. I think it's > important to limit what the design doc alone can do. Putting something > like a dictionary of app -> ddoc rewrites in config seems like the > right place to modify CouchDB at such a fundamental level. I didn't mean to suggest that design documents get to control the parent URI space, as this could obviously introduce conflicts. I think a nice approach, as Chris suggests, would be split into two levels: * Design document level URI rewriting, but no parent URIs * Server level configuration that rewrites arbitrary URIs Do we need these both in the same release? Not sure, but it would be nice! Best, -- Noah Slater, http://tumbolia.org/nslater