incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Shorin <kxe...@gmail.com>
Subject Re: Handle the Welcome Request
Date Mon, 14 Apr 2014 03:23:59 GMT
You probably would like to copy _utils global handler config value instead.
--
,,,^..^,,,


On Mon, Apr 14, 2014 at 7:14 AM, Scott Weber <scotty2541@sbcglobal.net> wrote:
> 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
View raw message