incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Weber <scotty2...@sbcglobal.net>
Subject Handle the Welcome Request
Date Mon, 14 Apr 2014 03:14:28 GMT
Greetings again,
I am trying to handle the Welcome message that appears from a root request.
I am using version 1.5 on a Windows machine.


Specifically I want to direct the "/" request to another url.
After hours of searching, the closest I found was this:


https://issues.apache.org/jira/browse/COUCHDB-472
which describes putting the changes in the [httpd_global_handlers] section.

So I followed the changes documented at18/Aug/09 14:43
I replaced the root handler with both suggestions in the log. Neither worked, they gave me
a "500 server error".
For example I set this:


/ = {couch_httpd_misc_handlers, handle_welcome_req, {<<"Welcome">>,"/me/there/page.html"}}

In the couch log, I get:
httpd 500 error response:
 {"error":"json_encode","reason":"{bad_term,{<<\"Welcome\">>,\"/me/there/page.html\"}}"}


Is there any other solution to this?

-Scott

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message