Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 32445 invoked from network); 9 Aug 2010 14:22:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Aug 2010 14:22:45 -0000 Received: (qmail 25728 invoked by uid 500); 9 Aug 2010 14:22:43 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 24536 invoked by uid 500); 9 Aug 2010 14:22:41 -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 24528 invoked by uid 99); 9 Aug 2010 14:22:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 14:22:40 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 14:22:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o79EMGxe011762 for ; Mon, 9 Aug 2010 14:22:17 GMT Message-ID: <11276745.233661281363736771.JavaMail.jira@thor> Date: Mon, 9 Aug 2010 10:22:16 -0400 (EDT) From: "Noah Slater (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-472) handle custom CouchdDB welcome page In-Reply-To: <1513040232.1250601614793.JavaMail.jira@brutus> 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.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D128= 96559#action_12896559 ]=20 Noah Slater commented on COUCHDB-472: ------------------------------------- I think that's fine. It's a pretty weird user agent that doesn't know how t= o handle text/html. The Accepts header is only a guide, there's no requirem= ent to stick to it. > 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: 0.12 > > Attachments: COUCHDB-472-2.patch, COUCHDB-472.patch, couchdb_welc= ome.patch, couchdb_welcome2.patch, couchdb_welcome3.patch, screenshot.png, = Welcome page screenshot.jpg > > > 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. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.