FastCGI - how to relocate dispatch.fcgi outside of rails app

Howdy.

Due to a rather unique hosting setup, I need to relocate the
dispatch.fcgifile to a directory outside of
/path/to/application/public.

The setup looks like:

/path/to/content/RailsApp/ – all application files
/path/to/fcgi-bin/RailsApp/ – dispatch.fcgi

I’ve modified dispatch.fcgi to find environment.rb; however, all
requests
for static files (index.html, javascripts, etc) fail as not recognized.
I
know there has to be some special mod_rewrite incantation to fix this –
any
pointers?

Thanks!
–chris