Jeroen Houben
2006-Mar-28 13:09 UTC
[Rails] 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 Houben
2006-Mar-28 13:43 UTC
[Rails] error 500 page not showing on production (lighty)
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/HowtoConfigureTheErrorPageForYourRailsApp but I still wonder why there''s 500.html in /public ? Does this ever get called? Jeroen
Dorian Mcfarland
2006-Mar-29 03:09 UTC
[Rails] error 500 page not showing on production (lighty)
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 Jeroen Houben wrote:> 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/HowtoConfigureTheErrorPageForYourRailsApp > > > but I still wonder why there''s 500.html in /public ? Does this ever get > called? > > Jeroen > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-- -- I do things for love or money