# Rails on Windows

**URL:** <https://www.ruby-forum.com/t/rails-on-windows/86864>\
**Category:** Rails\
**Created:** [February 26, 2007, 3:47pm UTC](https://www.ruby-forum.com/t/rails-on-windows/86864 "2007-02-26T15:47:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![guest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/8dc957/32.png) [@guest](https://www.ruby-forum.com/u/guest)\
**Post date:** [February 26, 2007, 3:47pm UTC](https://www.ruby-forum.com/t/rails-on-windows/86864/1 "2007-02-26T15:47:17Z")

</div>

For reasons beyond my control I’ve been saddled with deploying a Rails  
app I wrote onto a Win2k box. Installing Ruby, Rails, Mysql, and a host  
of other things that I need was easy enough, and I can now run the  
actual rails application via webrick. It looks awesome.

But I can’t figure out for the life of my how to set up the server’s IIS  
configuration to handle my application. I’ve used

> **[Rails on IIS revisited](http://made-of-stone.blogspot.com/2006/01/rails-on-iis-revisited.html)**
>
> Update: Brent Heinz has written an installer to automate this. Last time I wrote about setting up Rails on IIS I was in a bit of a rush. ...

and a number of supplementary resources, and I’m still not getting any  
results. The filters are set correctly, I’ve set up a new website and  
pointed it to the myapp/public directory, etc etc. But when I go to  
where the website should be (i.e. [http://mydomain.com](http://mydomain.com)), all I see is the  
directory structure for /public. It’s as if Rails hasn’t been switched  
on at all, even though I know IIS is working and I followed that guide  
as closely as I could.

Any suggestions or common problems I should be on the lookout for?

---

<div class="post-metadata">

**Author:** ![guest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/8dc957/32.png) [@guest](https://www.ruby-forum.com/u/guest)\
**Post date:** [February 26, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/rails-on-windows/86864/2 "2007-02-26T16:01:55Z")

</div>

rails-mailing-list wrote:

> But I can’t figure out for the life of my how to set up the server’s IIS  
> configuration to handle my application.

You could use…

- CygWin
- Webrick (script/server -p 80)
- mongrel
- Apache’s Win32 install

So why IIS?

–  
Phlip  
[http://c2.com/cgi/wiki?ZeekLand](http://c2.com/cgi/wiki?ZeekLand) ← NOT a blog!!

---

<div class="post-metadata">

**Author:** ![guest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/8dc957/32.png) [@guest](https://www.ruby-forum.com/u/guest)\
**Post date:** [February 26, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/rails-on-windows/86864/3 "2007-02-26T16:58:17Z")

</div>

Hi,

This is a very simple Ruby on Rails site that happily runs on windows  
2003 server.

[http://www.mbopdigital.com](http://www.mbopdigital.com)

I use mongrel as a web server & start it on port 80 - very simple, but  
it means the box can only host one normal web site.

Others seem to have managed what you are trying to do. Look here.

[http://wiki.rubyonrails.org/rails/pages/HowtoSetupIIS](http://wiki.rubyonrails.org/rails/pages/HowtoSetupIIS)

rgds,

- matt.

Phlip wrote:

> rails-mailing-list wrote:
> 
> > But I can’t figure out for the life of my how to set up the server’s IIS  
> > configuration to handle my application.
> 
> You could use…
> 
> - CygWin
> - Webrick (script/server -p 80)
> - mongrel
> - Apache’s Win32 install
> 
> So why IIS?
> 
> –  
> Phlip  
> [http://c2.com/cgi/wiki?ZeekLand](http://c2.com/cgi/wiki?ZeekLand) ← NOT a blog!!

---

<div class="post-metadata">

**Author:** ![guest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/8dc957/32.png) [@guest](https://www.ruby-forum.com/u/guest)\
**Post date:** [February 26, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/rails-on-windows/86864/4 "2007-02-26T17:40:21Z")

</div>

Mike Volodarsky and others of the Microsoft IIS group are working on  
developing a FastCGI solution for running PHP/Ruby/etc on IIS. Here  
is his post on how to use FastCGI with Ruby on IIS. They are  
currently at a Technical Preview 2 level but hope to have a beta  
version released this spring.

> **[10 steps to get Ruby on Rails running on Windows with IIS FastCGI - Mike...](https://mvolo.com/10-steps-to-get-ruby-on-rails-running-on-windows-with-iis-fastcgi/)**
>
> Since the original tech preview release of FastCGI last year, we've been seeing a lot of requests for getting Ruby on Rails running with our FastCGI.  Theoretically, since the FastCGI component uses a standard protocol to support FastCGI-enabled...

Hope this helps.
