Running Rails alongside IIS


#1

Hi,
I am hosting a couple of asp.net sites on IIS on my server.

Now I need to host another site in ruby on the same machine. For this I
guess i will need to run the webrick server.

Can anyone tell me how to have both iis and webrick running on port 80,
otherwise people will need to add the port 3000 to the site name each
time they visit the ruby site.


#2

Prashant D. wrote:

Hi,
I am hosting a couple of asp.net sites on IIS on my server.

Now I need to host another site in ruby on the same machine. For this I
guess i will need to run the webrick server.

Can anyone tell me how to have both iis and webrick running on port 80,
otherwise people will need to add the port 3000 to the site name each
time they visit the ruby site.

Here you go:

http://weblog.rubyonrails.org/2006/5/11/deploying-rails-on-windows-servers


#3

It’s not advisable to run webrick on a production server - in fact,
it’s falling out of favour generally as it does have a few bugs.

The latest idea for running on windows is to use mongrel to run the
rails application. You can then use IIS to proxy requests for your
rails site through to the mongrels.

That may be easier said than done as I’m not sure how you proxy on IIS.
However, there has been quite a bit of discussion about the subject of
rails/windows on this group so i would suggest having a bit of a search
to see if you can pick up some additional resources to help you out.

Hope that helps,

Steve


#4

We run a similar setup. In our case we run Apache in front of
everything. Apache then proxies to either mongrel_cluster or to IIS
depending on the URL.

We looked into proxying through IIS but it was more trouble than it is
worth.

V/r
Anthony E.

On 1/13/07, Prashant D. removed_email_address@domain.invalid wrote:


Posted via http://www.ruby-forum.com/.


Cell: 808 782-5046
Current Location: Melbourne, FL


#5

It’s not advisable to run webrick on a production server - in fact,
it’s falling out of favour generally as it does have a few bugs.

The latest idea for running on windows is to use mongrel to run the
rails application. You can then use IIS to proxy requests for your
rails site through to the mongrels.

That may be easier said than done as I’m not sure how you proxy on IIS.
However, there has been quite a bit of discussion about the subject of
rails/windows on this group so i would suggest having a bit of a search
to see if you can pick up some additional resources to help you out.

Hope that helps,

Steve