Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 463EF9827 for ; Thu, 5 Jan 2012 17:14:09 +0000 (UTC) Received: (qmail 73883 invoked by uid 500); 5 Jan 2012 17:14:04 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 73828 invoked by uid 500); 5 Jan 2012 17:14:04 -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 73794 invoked by uid 99); 5 Jan 2012 17:14:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 17:14:04 +0000 X-ASF-Spam-Status: No, hits=-2001.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 17:14:02 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3458313A124 for ; Thu, 5 Jan 2012 17:13:41 +0000 (UTC) Date: Thu, 5 Jan 2012 17:13:41 +0000 (UTC) From: "Jan Lehnardt (Updated) (JIRA)" To: dev@couchdb.apache.org Message-ID: <1518981980.10070.1325783621215.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (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 [ https://issues.apache.org/jira/browse/COUCHDB-472?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Lehnardt updated COUCHDB-472: --------------------------------- Fix Version/s: (was: 1.2) 1.3 Bump to 1.3.x =20 > 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 > Assignee: Benoit Chesneau > Fix For: 1.3 > > Attachments: COUCHDB-472-2.patch, COUCHDB-472.patch, Welcome page= screenshot.jpg, couchdb_welcome.patch, couchdb_welcome2.patch, couchdb_wel= come3.patch, screenshot.png > > > This change modify behaviour of Welcome handler by allowing admin to cust= omize the welcome page. If content is "application/json" it will send curre= nt json object, if not, it will send an html page or redirect to another pa= th. =20 > This patch change the confugration string to a tupple {WelcomeMsg, Welcom= ePage}. WelcomePage could be a string for DocumentRoot where it will find w= elcome.html page or a tupple {redirect, Url} > Ex if in config you have: > / =3D {couch_httpd_misc_handlers, handle_welcome_req, {<<"Welcome">>, "/u= sr/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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira