# Running Rails alongside IIS

**URL:** <https://www.ruby-forum.com/t/running-rails-alongside-iis/102645>\
**Category:** Rails\
**Created:** [January 13, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/running-rails-alongside-iis/102645 "2007-01-13T22:41:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdeva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e47c2d/32.png) [@pdeva](https://www.ruby-forum.com/u/pdeva)\
**Post date:** [January 13, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/running-rails-alongside-iis/102645/1 "2007-01-13T22:41:43Z")

</div>

Hi,  
I am hosting a couple of [asp.net](http://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.

---

<div class="post-metadata">

**Author:** ![pdeva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e47c2d/32.png) [@pdeva](https://www.ruby-forum.com/u/pdeva)\
**Post date:** [January 15, 2007, 12:55pm UTC](https://www.ruby-forum.com/t/running-rails-alongside-iis/102645/2 "2007-01-15T12:55:36Z")

</div>

Prashant D. wrote:

> Hi,  
> I am hosting a couple of [asp.net](http://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:

> **[Deploying Rails on Windows servers](https://rubyonrails.org/2006/5/11/deploying-rails-on-windows-servers)**
>
> Most Rails applications are deployed in a Unix server environment. Tools like Capistrano make this dead easy. For those working in a Windows environment, deployment can get considerably harder. The good news is that it’s still possible and just got a...

---

<div class="post-metadata">

**Author:** ![pdeva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e47c2d/32.png) [@pdeva](https://www.ruby-forum.com/u/pdeva)\
**Post date:** [January 19, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/running-rails-alongside-iis/102645/3 "2007-01-19T16:30:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pdeva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e47c2d/32.png) [@pdeva](https://www.ruby-forum.com/u/pdeva)\
**Post date:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/running-rails-alongside-iis/102645/4 "2007-01-19T16:31:52Z")

</div>

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](mailto:removed_email_address@domain.invalid) wrote:

> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

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

---

<div class="post-metadata">

**Author:** ![pdeva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e47c2d/32.png) [@pdeva](https://www.ruby-forum.com/u/pdeva)\
**Post date:** [January 19, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/running-rails-alongside-iis/102645/5 "2007-01-19T16:30:48Z")

</div>

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
