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

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

1 Answer 1

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.