Error 500 page not showing on production (lighty)

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

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

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

Jeroen

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