Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

3 Answers 3

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
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/templates

(Your lib/gem path may vary.)

share|improve this answer

Your Answer

 
discard

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.