开发者

Accessing couchdb futon thru https

I've got a problem accessing futon interface when it is proxied using nginx. This config works fine when http protocol is used, but when I try to use https, I constantly receive no_db_file errors (but operations succeed, e.g. I can create databases, insert values, etc.)

location / {
   proxy_pass http://127.0.0.1:5984;
}

What can I do to make it work correctly 开发者_高级运维using https protocol?


I have used Apache proxying to proxy https to http to do https on CouchDB: http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy

I have found that a trailing slash on the URL affects whether or not https proxying works. Maybe it affects Nginx the same way?


That's not bad! At least you have a working link between nginx and CouchDB.

no_db_file is CouchDB's 404 response when a database (the first thing after the slash) is not there. Check the logs and see what path CouchDB actually received in the query. It may be one of the AJAX calls that Futon does; but whatever it is, the logs will say.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜