I have two questions about the 404 error redirection technique, which I
first saw with Lighttpd/FastCGI and now see with Litespeed 2.2 LSAPI
Why is this a good idea? It seems like using errors to control
program flow, which is a big no-no where I come from.
How do real 404s get passed along and handled? In other words, say
â??/images/rails.pnqâ? is not found in the file system. The redirection
would pass that URI to Rails, which would claim a routing error. Is it a
Rails error? No, itâ??s a static file not found.
People (me included) were having lots of trouble with Lighttpd/FastCGI
and welcomed the Mongrel/proxy setup with welcome arms. Now along comes
LSAPI and the 404 redirect is back. It seems suspect to me, but that’s
likely just a lack of understanding - thus the reason for this post.
I would never understand a really low-level explanation of C pointers or
memory maps or whatever, but a simple explanation of the reasoning for
this would help ease this dull migraine Iâ??ve got going.