Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed CouchDB on my Ubuntu server from the stable PPA. Then I put this in my nginx.conf:

server {
    listen 80;

    location / {

setting up a subdomain to access Futon. When I go to 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?

share|improve this question
up vote 1 down vote accepted

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:

Known Test Suite issue with reverse proxy from subdirectory URL

If the reverse proxy configuration also rewrites the URL for a subdirectory, the test suite will fail because it relies on the absolute root path for HTTP requests. This is a known issue and a patch has been submitted by Jack Moffitt at

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.