Updated March 16th, 2009:
This plugin now supports Rails 2.3, 2.2, 2.1, 2.0, 1.2x, and 1.1.
I’ve been working for the last few months on methods to place Rails applications behind Microsoft’s IIS web server. It’s not the easiest thing to do. One of the biggest hurdles is the fact that when Rails generates URLs with the built-in methods like link_to and url_for, they could end up exposing the internal URLs instead of the ones you want your users to go through.
I’ve developed a plugin that will handle the rewriting for you. All you have to do is install the plugin, provide the appropriate base URL to the config file, select the version of Rails you’re using, and then launch your application in production mode.
ruby script\plugin install http://svn.napcsweb.com/public/reverse_proxy_fix
Documentation is available online at http://www.napcsweb.com/rdoc/reverse_proxy_fix/index.html