title: Custom 404 response in ruby (not rails) cgi script info?
body: <p>I came across a PHP script that points apache to it when it 404s, so it can do rewrites on URLS that mod_rewrite can't do, like checking version and doing other things mod_rewrite just can't do... </p>
  
  <p>I wonder if there is any documentation for ruby cgi and playing with rewriting URL's. I have searched for 30-40 min but all I get is RAILS related routes and stuff :-( </p>