I installed CouchDB on my Ubuntu server from the stable PPA. Then I put this in my nginx.conf:
server {
listen 80;
server_name couchdb.mydomain.com;
location / {
proxy_pass http://127.0.0.1:5984;
}
}
setting up a subdomain to access Futon. When I go to couchdb.mydomain.com/_utils and run the CouchDB test suite, Nginx gives 502 Bad Gateway errors. Any ideas on what would be causing this? Is it possible to know what url the test suite is trying to go to?
On Firefox, you can use the livehttpheaders addon to watch the headers and try to diagnose your problem.
On Chrome, you can go to chrome://net-internals and do the same on the events tab.
In any case, it seems that test fails behind proxy problem is a known one: