I have a site built on rails 2 and I want to put into production with
Apache 2 + mod_proxy + mongrel instances.
The problem is that, when I hit a non existing page, I expected
mongrel to render the /404.html file for me. Since this did’t work, I
put the “ErrorDocument /404.html” on my Apache 2 config but Apache
seems to ignore it, since mongrel answers 404 with some HTML content
(with the failing routing match).
Can you help me with this? I expected that mongrel rendered /404.html
and /500.html as soon as I indicated I’m in production environment.
Is this a mongrel responsibility or Apache?