---
title: "Disabling Passenger built-in error handler"
date: "2015-02-19"
category: "cgi-passenger"
slug: "disabling-passenger-built-error-handler"
---

## Overview

Passenger includes a built-in error handler that displays detailed debugging information for Python, Ruby, and Node.js applications. While useful during development, this can expose sensitive information in production.

## Disabling the Error Handler

To switch from Passenger's error handler to Apache's generic error page, add the following line to your [[htaccess-guide]] file inside the `public/` folder of your application:

`PassengerErrorOverride On`

Once disabled, errors are logged to `/var/log/httpd/passenger.log` and can be reviewed by [[accessing-page-views-and-error-messages]].

## Comparison

![Error message generated when Passenger is set to handle error messages (default).](kb-image:passenger-error-handler.png)
*Passenger's built-in error handler (default) -- shows detailed application errors.*

![Generic Apache error handler when PassengerErrorOverride is set to Off.](kb-image:passenger-apache-error-handler.png)
*Apache's generic error handler with PassengerErrorOverride enabled -- no application details exposed.*
