Yes. I can… very soon. I’m about 90% done with the tutorial.
here’s the basic concept:
IIS (80) Apache (8080)
Each rails app is configured as an Alias all on one VHOST
Apache conf :
Alias /code “e:/rails/blog/public”
FastCgiServer e:/rails/blog/public/dispatch.fcgi -idle-timeout 120
-initial-env RAILS_ENV=production -processes 1
Options ExecCGI FollowSymlinks
ISAPI rewrite rule: (one for each rails app)
RewriteProxy /blog(.*) http://internal.server.com:8080/blog$1 [I,U]
You need to do this for each app.
You also need to modify RewriteBase in your Rails .htaccess file.
Calls to “url_for” can sometimes reveal the backend server. My way
around that has been to make sure that Apache runs on the SAME BOX as
IIS. I then wrote a simple plugin which I will be sharing that you can
place in your production app to remove the :8080 proxy when url_for is
used. (requests then route back through IIS).
That’s the summary. I’ll be publishing the full howto later today or