couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Wood <...@omnigroup.com>
Subject Re: Problem getting simple rewrite rule to work
Date Fri, 19 Nov 2010 23:30:03 GMT

On Nov 19, 2010, at 9:40 AM, Stefan Klein wrote:
> I think you have to use:[
> 
> {
>   "from": "/",
>   "to": "index.html",
>   "method": "GET"
> }
> ]
> 
> since rewrites are relativ to ".../_rewrites" and not ".../_rewrites/"
> 
> There is an example in the "What's New in CouchDB 0.11 & 1.0" webcast http://www.youtube.com/watch?v=4jtBQf41Ppc#t=11m30s

  No luck with that either. Using:

[
	{
		"from": "/",
		"to": "index.html",
		"method": "GET"
	}
]

  I get:

[Fri, 19 Nov 2010 23:28:19 GMT] [info] [<0.26519.1>] Stacktrace: [{couch_httpd_rewrite,'-handle_rewrite_req/3-lc$^1/1-1-',
                                  [<<"[\n\t{\n\t\t\"from\": \"/\",\n\t\t\"to\": \"index.html\",\n\t\t\"method\":
\"GET\"\n\t}\n]">>]},
             {couch_httpd_rewrite,handle_rewrite_req,3},
             {couch_httpd_db,do_db_req,2},
             {couch_httpd,handle_request_int,5},
             {mochiweb_http,headers,5},
             {proc_lib,init_p_do_apply,3}]

  I’ll keep watching the video to see if anything else pops out that I might need to configure.
 Thanks for the link!

-tim


Mime
View raw message