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

How do you replace the Passenger Application failed to load error messages. They are lovely, but I'd rather not display them when we move our application to production. It'd be better to just show them on the dev box and maintenance page on the live site.

For clarification, this is the call stack page passenger displays when your rails app fails to load.

I'd rather not modify the passenger template files directly.

Passenger doesn't seem to be respecting:

ErrorDocument 500 /500.html
share|improve this question

You have to include the Passenger directive:

PassengerFriendlyErrorPages off

additionally to the ErrorDocument directives for Apache that you want, in order to disable the Passenger error page.

share|improve this answer

If it's the 500 error you're getting / wanting to show something different, you should be able to just change the 500.html page in your rails app under the public folder. Sorry if you already, but that sounds like what you're trying to change.

share|improve this answer

(Your lib/gem path may vary.)

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.