reverse_proxy_fix 1.0.4.1 released with Rails 2.0 support

Posted by Brian in News (December 18th, 2007)

I’ve been testing this release for about two months but had not released it yet. A friendly email from a user of this plugin alerted me to the fact that I should really push this release out, especially as it’s featured in Deploying Rails Applications

Reverse_proxy_fix is a plugin that prepends the base url of your choice to any of the URLs generated by Rails’ URL helpers. It’s primarily designed to allow you to hide your application behind a reverse proxy like ISAPI_Rewrite for IIS, though I’ve heard that people have used it elsewhere.

Say you have an app that you want to host on an IIS machine at http://www.myexample.com/fun/application

You’d install this plugin and configure it to use http://www.myexample.com/fun/application as your base URL. When you run your application in production mode, all of your URLS will be prepended with http://www.myexample.com/fun/application.

To install, you need to do the plugin install thingy:

ruby script/plugin install http://svn.napcsweb.com/public/reverse_proxy_fix

When the plugin installs, you then get to configure it with an interactive script.

########################################################
# reverse_proxy_fix plugin                             #
# Configureation                                       #
########################################################

Enter the base url you wish to use without the trailing slash (example: http://e
xternal.mycompany.com/myapp)
http://www.project.com/app1
Please select your Rails version from the list of supported versions:
 1 : Rails 1.1.6
 2 : Rails 1.2.X
 3 : Rails 2.0
3
The file C:/projects/rscrum/vendor/plugins/reverse_proxy_fix/lib/config.rb has b
een modified. The plugin will be activated when you run your application in prod
uction mode.
Plugin successfully installed and configured

Comments are closed.

Sorry, the comment form is closed at this time.