[Rails] Re: default error page

Eric Anderson eric at afaik.us
Tue Jan 11 18:23:16 GMT 2005


Raffaele Tesi wrote:
> I've changed the property consider_all_requests_local
> to false. Now for remote requests the output is the
> standard "Application error (Rails)", but it isn't the
> content of /public/500.html:
> 
> h1>Application error (Apache)</h1>
> <p>Change this error message for [...]</p>
> 
> It is the default output of a method / another file
> located... where?

It's probably because you are using Webrick. You may have to check the 
Webrick documentation for how to set a custom 500 error message. Rails 
is generating a 500 error message. In Apache when it sees the 500 
response it loads /public/500.html because of the .htaccess telling it 
to. I assume there is some way to tell Webrick to load a certain file if 
  the application generates a 500 message, but I don't know enough about 
Webrick to know how to do that.

Eric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://one.textdrive.com/pipermail/rails/attachments/20050111/f85b80f4/signature.bin


More information about the Rails mailing list