From: Robert Klemme Date: 2007-01-14T04:15:08+09:00 Subject: Re: Running Webrick alongside IIS on port 80 On 13.01.2007 16:17, Ron M wrote: > Robert Klemme wrote: >> On 12.01.2007 23:47, Prashant Deva wrote: >>> 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. >> Um, you cannot have to processes listen on the same port on one >> interface. > > Sure you can. You can if you give the interface card 2 IP addresses > and have each process only listen to port 80 on one of the IPs. You actually can have *two* IP addresses on *one* NIC? Are you sure about that? How would you configure that for example on Linux? > I don't know how to do this in IIS; but Apache's docs describe > in their "Setting up multiple daemons" daemons section. I assume > webrick offers similar? Or are you considering this a different port? Even if IIS and Webrick both support binding to just one IP address (which I assume) then you still need two DNS names - one for each IP. The OP did not sound as if that was what he wanted - if it's possible at all. Of course you could map one DNS name to both IP's but this might yield unpredictable results. > I'd say his easiest alternative is to run Apache on port 80; and > have it proxy some requests to some ruby server (hopefully better > than webrick - maybe mongrel) and proxy other requests to IIS running > on a different port. And then firewall off the IIS and webrick ports > of course for security reasons. I'd say the *easiest* is to just run Ruby code via CGI - or just have Webrick run on another port. With your setup you have three pieces of software to configure, run and monitor vs. two in the other case. Regards robert