Forum: Ruby on Rails error 500 page not showing on production (lighty)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B9a732fc30c32098347a0177c75ee27b?d=identicon&s=25 Jeroen Houben (Guest)
on 2006-03-28 15:10
(Received via mailing list)
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
B9a732fc30c32098347a0177c75ee27b?d=identicon&s=25 Jeroen Houben (Guest)
on 2006-03-28 15:41
(Received via mailing list)
Jeroen Houben 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/HowtoConfi...

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

Jeroen
F719c6cb34bd5b691c12b373b7244b4d?d=identicon&s=25 Dorian Mcfarland (tachekent)
on 2006-03-29 05:10
(Received via mailing list)
you will need to edit the .htaccess file:

comment out the line
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to
start properly"

and add the line:
ErrorDocument 500 /500.html

that should do you well.

dorian
This topic is locked and can not be replied to.