Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 followed this tutorial:

Running nginx via proxy on port 8000. You can see it here.

Why is it listing the files in the /public dir? Also, if I try to go to any of the devise uris, it shows the Nginx 404, and not the rails 404...could this be a passenger issue?

I'm new to server admin/rails. So it could be an nginx issue OR rails config. Any advice for a rails student/zombie?

Part of my problem is that I don't know much about error logs. How do I check nginx/apache/rails logs for errors?

share|improve this question
up vote 1 down vote accepted


It looks like Apache maybe misconfigured. Upon clicking one of the links in the file list it tried to redirect it to,

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /error.log.

Reason: DNS lookup failure for:

You can add to /etc/hosts but it looks like a trailing / might be missing on your proxy_pass directive.

share|improve this answer
That's just an apache thing. Try – Kevin Brown Mar 26 '12 at 1:46
^^IT SHOULD WORK CORRECTLY FROM THAT ADDRESS!^^ – Kevin Brown Mar 26 '12 at 1:47

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.