Customer Passenger Error Pages

apache-2.2phusion-passengerruby-on-rails

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

Best Answer

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.

Related Topic