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

Here's an example of the URLs that don't work:


However, the following URL does work:


Also, this only happens with Nginx, using Passenger with Apache it works fine, but we use Nginx on our production machines.

Here's the entry in Nginx's error log:

2009/12/01 09:30:51 [error] 6407#0: *136 upstream prematurely closed connection while reading response header from upstream, client:, server: domain, request: "GET /do? HTTP/1.1", upstream: "passenger://unix:/tmp/passenger.6335/master/helper_server.sock:", host: "domain"
share|improve this question
What lib did you have an issue with? – lillq Oct 27 '11 at 21:53

It has nothing to do with Nginx or Passenger.

There was a library that takes and uses a URL wasn't working with the Ruby version on our production server. For some odd reason it was causing Rails to fail so catastrophically that the only erros were in Nginx's error log.

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.