Access couchdb food site via https

I have a problem accessing the futon interface when it is proxied using nginx. This configuration works fine when using the HTTP protocol, but when I try to use https, I constantly get no_db_file errors (but the operations are successful, for example 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 the https protocol?

+4
source share
2 answers

I used the Apache proxy for https proxy for http to make https on CouchDB: http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy

I found that the trailing slash in the URL affects whether https proxy works. Maybe this affects Nginx the same way?

0
source

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

no_db_file is the answer of CouchDB 404 when the database (the first thing after the slash) does not exist. Check the logs and see which path CouchDB actually got in the request. This may be one of the AJAX calls Futon makes; but whatever it is, the magazines will say.

0
source

Source: https://habr.com/ru/post/1342703/


All Articles