# Error 500 page not showing on production (lighty)

**URL:** <https://www.ruby-forum.com/t/error-500-page-not-showing-on-production-lighty/88424>\
**Category:** Rails\
**Created:** [March 28, 2006, 3:10pm UTC](https://www.ruby-forum.com/t/error-500-page-not-showing-on-production-lighty/88424 "2006-03-28T15:10:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeroen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jeroen](https://www.ruby-forum.com/u/jeroen)\
**Post date:** [March 28, 2006, 3:10pm UTC](https://www.ruby-forum.com/t/error-500-page-not-showing-on-production-lighty/88424/1 "2006-03-28T15:10:08Z")

</div>

Hi,

Do I need to configure something to get my custom public/500.html page  
showing on my production server (lighttpd)? My custom 404 page is  
showing but when I hit an exception I just see the default (Applcation  
Error) message.

Also, is it possible to include some ERB in error404 and 500 pages?

Jeroen

---

<div class="post-metadata">

**Author:** ![jeroen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jeroen](https://www.ruby-forum.com/u/jeroen)\
**Post date:** [March 28, 2006, 3:41pm UTC](https://www.ruby-forum.com/t/error-500-page-not-showing-on-production-lighty/88424/2 "2006-03-28T15:41:07Z")

</div>

Jeroen H. wrote:

> Hi,
> 
> Do I need to configure something to get my custom public/500.html page  
> showing on my production server (lighttpd)? My custom 404 page is  
> showing but when I hit an exception I just see the default (Applcation  
> Error) message.
> 
> Also, is it possible to include some ERB in error404 and 500 pages?

Found some answers here:  
[http://wiki.rubyonrails.org/rails/pages/HowtoConfigureTheErrorPageForYourRailsApp](http://wiki.rubyonrails.org/rails/pages/HowtoConfigureTheErrorPageForYourRailsApp)

but I still wonder why there’s 500.html in /public ? Does this ever get  
called?

Jeroen

---

<div class="post-metadata">

**Author:** ![jeroen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jeroen](https://www.ruby-forum.com/u/jeroen)\
**Post date:** [March 29, 2006, 5:10am UTC](https://www.ruby-forum.com/t/error-500-page-not-showing-on-production-lighty/88424/3 "2006-03-29T05:10:30Z")

</div>

you will need to edit the .htaccess file:

comment out the line  
ErrorDocument 500 “

## Application error
Rails application failed to  
start properly”

and add the line:  
ErrorDocument 500 /500.html

that should do you well.

dorian
