Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 97274 invoked from network); 18 Aug 2009 13:20:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 13:20:21 -0000 Received: (qmail 47871 invoked by uid 500); 18 Aug 2009 13:20:39 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 47766 invoked by uid 500); 18 Aug 2009 13:20:39 -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 47573 invoked by uid 99); 18 Aug 2009 13:20:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 13:20:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 13:20:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C59BD234C044 for ; Tue, 18 Aug 2009 06:20:14 -0700 (PDT) Message-ID: <1513040232.1250601614793.JavaMail.jira@brutus> Date: Tue, 18 Aug 2009 06:20:14 -0700 (PDT) From: "Benoit Chesneau (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-472) handle custom CouchdDB welcome page MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org handle custom CouchdDB welcome page ----------------------------------- Key: COUCHDB-472 URL: https://issues.apache.org/jira/browse/COUCHDB-472 Project: CouchDB Issue Type: Improvement Affects Versions: 0.10 Reporter: Benoit Chesneau Fix For: 0.10 Attachments: couchdb_welcome.patch This change modify behaviour of Welcome handler by allowing admin to custom= ize the welcome page. If content is "application/json" it will send current= json object, if not, it will send an html page or redirect to another path= . =20 This patch change the confugration string to a tupple {WelcomeMsg, WelcomeP= age}. WelcomePage could be a string for DocumentRoot where it will find wel= come.html page or a tupple {redirect, Url} Ex if in config you have: / =3D {couch_httpd_misc_handlers, handle_welcome_req, {<<"Welcome">>, "/usr= /local/share/couchdb/www"}} If Accept content is application/json Couchdb will send : "couchdb":"Welcome","version":"0.10.0a"} If other it will send welcome.html. if you replace "/usr/local/share/couchdb/www" by {redirect, <<"/_utils">>}= =C2=A0user will be redirected on futon. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.