我正在尝试使用 CouchDB 的 url 重写功能,但不断收到错误:{"error":"unknown_error","reason":"function_clause"}
我阅读了http://wiki.apache.org/couchdb/Rewriting_urls并观看了http://vimeo.com/20773112,我相信我正在遵循这些准则(尽管显然某处出了问题)。
我正在运行 CouchDB 1.2.0。
我的虚拟主机条目是:
mysite.com => /db/_design/user1505506/_rewrite
我的重写json是:
"rewrites": {
"from": "",
"to": "/db/_design/user1505506/index.html",
"method": "GET"
}
任何有关为什么会发生这种情况的信息将不胜感激!