1. Home
  2. CGI & Passenger
  3. Disabling Passenger built-in error handler
  1. Home
  2. Python
  3. Disabling Passenger built-in error handler
  1. Home
  2. Ruby
  3. Disabling Passenger built-in error handler

Disabling Passenger built-in error handler

Contents

Overview

Passenger provides a user-friendly, on-screen error handler to assist debugging a Python/Ruby/Node.js application. During production, however, this may result in unnecessary and possibly dangerous information disclosure. You can turn off Passenger’s built-in logger and use Apache’s generic error handler by adding the following line to your .htaccess file located within the public/ folder of your app:

PassengerErrorOverride On

Errors can then be viewed through /var/log/httpd/passenger.log

Error message generated when Passenger is set to handle error messages (default).

Error message generated when Passenger is set to handle error messages (default).

Generic Apache error handler when PassengerErrorOverride is set to Off.

Generic Apache error handler when PassengerErrorOverride is set to Off.

Updated on July 8, 2019

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help! If you get an error, visit https://lithiumhosting.com/support instead.
Contact Support