Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to know if Ruby and IIS 7 can live together, using the same 80 port in my webserver.

share|improve this question

Two disparate processes cannot share a port. This comes down to basics of socket programming. However, a sub-process can share a port with its parent, as seen with Apache on Windows (have a look using ProcessExplorer).

share|improve this answer
Pardon my possible ignorance, but isn't ruby just a programming language? If so, then it won't use a port but depends on whether there's a ruby module for IIS. – Ben Pilbrow Oct 23 '10 at 19:14
Just answering the ports bit. Not a foggiest about Ruby. Thought it was a semi-precious stone. ;-) – Simon Catlin Oct 24 '10 at 9:09

Perhaps you are looking for this page?

Ruby On Rails For IIS Fast-CGI

share|improve this answer

The best thing to do is to run IIS on port 80, and use it as a proxy to the rails server running on a separate port behind it.

You would use a host-mask filter to do this.

Or, you could use IIS to serve rails directly via FastCGI, though I would honestly use something that is more "normal" in the rails world, and simply proxy it through IIS.

We do something similar with a Apache TomCat install running a java site side by side with .NET sites.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.