Changing Passenger Default Error Page for Nginx

Currently if there's a problem launching a Rails app on our server, users are taken to a Passenger error page with an error like "Ruby (Rack) application could not be started".

Is it possible to customize this error page and display something else so users of a live site don't see this?

I'm using nginx for the server.

Thanks

Answers


The users guide contains some good information on the various config options. There is an option to disable the friendly error pages which is what I think you may be seeing.

To disable the startup error message specify the following line in your config file:

passenger_friendly_error_pages off

You can place this inside the http block, server block or location block. If you place it in the http block it would disable it by default for all of the virtual hosts on that server. You can however override the setting in the server block by placing the same option inside a http block.


Need Your Help

paypal IPN returns pending_reason: unilateral

paypal paypal-ipn

My PayPal IPN scripts runs very well. When I test with my sandbox account it, the payment is made instantly, however when I use my client's business email, I got payment_status as 'Pending', with

Prevent Moq from creating singleton Mocks

c# moq automoq

It seems like mocked services are being shared with consumers, as if the mocked interfaces are singleton. I'm using AutoMoq/Moq combination if that's relevant.