From dev-return-7613-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Sat Dec 05 19:16:00 2009 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 13343 invoked from network); 5 Dec 2009 19:16:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Dec 2009 19:16:00 -0000 Received: (qmail 32469 invoked by uid 500); 5 Dec 2009 19:15:59 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 32376 invoked by uid 500); 5 Dec 2009 19:15:59 -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 32366 invoked by uid 99); 5 Dec 2009 19:15:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Dec 2009 19:15:59 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcdcd-couchdb-2@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Dec 2009 19:15:49 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NH06K-0003QG-0C for dev@couchdb.apache.org; Sat, 05 Dec 2009 20:15:28 +0100 Received: from dsl-63-249-119-34.static.cruzio.com ([63.249.119.34]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Dec 2009 20:15:27 +0100 Received: from rogerb by dsl-63-249-119-34.static.cruzio.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Dec 2009 20:15:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@couchdb.apache.org From: Roger Binns Subject: Re: _rewrite handler Date: Sat, 05 Dec 2009 11:15:03 -0800 Lines: 32 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dsl-63-249-119-34.static.cruzio.com User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: X-Enigmail-Version: 0.95.7 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Benoit Chesneau wrote: > what would do this doc? Nothing in particular - it would just be provided to the _rewrite handler Javascript code to do with as it pleases with no prescribed behaviour. The ways I would use it if it existed: - - Rewrite to different URIs depending on if the request comes from an internal or external location. The doc would have a list of subnets considered internal. - - If my app had 10 components, I'd store in the doc which ones are active and which disabled (eg disabled ones could be redirected to a page explaining that). - - I'd prefer to have my rules listed as data with my Javascript code applying them. With the current approach a Javascript has to be regenerated on any rule change. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAksasTMACgkQmOOfHg372QQi/gCfZkuPASwI4562apjU7CMOcBs5 dMUAoK4Nmy8rVJcP8AK+s7A2Ma1nyJBc =Tjfo -----END PGP SIGNATURE-----