Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 56209 invoked from network); 7 Sep 2010 23:39:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Sep 2010 23:39:56 -0000 Received: (qmail 9653 invoked by uid 500); 7 Sep 2010 23:39:56 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 9589 invoked by uid 500); 7 Sep 2010 23:39:55 -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 9581 invoked by uid 99); 7 Sep 2010 23:39:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 23:39:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 23:39:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o87NdYgF024631 for ; Tue, 7 Sep 2010 23:39:34 GMT Message-ID: <8552670.66041283902774140.JavaMail.jira@thor> Date: Tue, 7 Sep 2010 19:39:34 -0400 (EDT) From: "Benoit Chesneau (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Resolved: (COUCHDB-230) Add Support for Rewritable URL In-Reply-To: <1964398746.1233345179738.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benoit Chesneau resolved COUCHDB-230. ------------------------------------- Assignee: Benoit Chesneau Resolution: Fixed fixed in last trunk. it's now possible to do : */test = /somedb/_design/test/_rewrite or example.com/test = /somedb/_design/test/_rewrite *.example.com/test = /somedb/_design/test/_rewrite ... > Add Support for Rewritable URL > ------------------------------ > > Key: COUCHDB-230 > URL: https://issues.apache.org/jira/browse/COUCHDB-230 > Project: CouchDB > Issue Type: New Feature > Reporter: Patrick Aljord > Assignee: Benoit Chesneau > Fix For: 1.0.2 > > Attachments: 0001-manage-aliases.patch > > > It would be good if couchdb would allow to rewrite urls so that instead of having to write that: > http://127.0.0.1:5984/blogdb/_design/sofa/account.html > I could just write: > http://127.0.0.1:5984/blogdb/account > It could be done with the web server but having the rewritten rules in the db would make it a bit easier for replication so we don't have to write the rules on each web server where a db gets replicated. > Here are a few propositions from davisp: > alisdair: how so? rewriting urls should be in _design documents, since they're in _design docs they should be limited to per db namespaces > bobesponja: I don't know that anyone has looked at it seriously, but my first guess is that we'd just make a _design/doc "urls" member that's a list of regex's and targets as is fairly standard practice > bobesponja: or perhaps, regex's -> erlang handler > the second might not be as fun -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.