Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
0.10
-
None
-
None
-
None
-
New Contributors Level (Easy)
Description
This change modify behaviour of Welcome handler by allowing admin to customize 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.
This patch change the confugration string to a tupple
{WelcomeMsg, WelcomePage}. WelcomePage could be a string for DocumentRoot where it will find welcome.html page or a tupple
{redirect, Url}Ex if in config you have:
/ = {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">>}user will be redirected on futon.
Attachments
Attachments
Issue Links
- is related to
-
COUCHDB-348 / should redirect to a human readable page when accessed from a browser
- Resolved
-
COUCHDB-1954 Clarify Futon/Fauxton transition
- Closed