Blog Stats
  • Posts - 61
  • Articles - 3
  • Comments - 196
  • Trackbacks - 234

 

Running IIS 6.0 and Apache on Port 80 on a single system with different IP's

Recently I was trying to setup SubVersion on my server system, and wanted Apache based access from the clients to the source control. This will give me the option to control the access from a central place and also enable the source control to be access through web at a later stage.

So to enable both the application to listen on port 80, I created a sub domain in my DNS which points to a different IP from the one which IIS is currently listening. After making sure the 'Default Web Site' is not listening to 'All UnAssigned' IP addresses and setting DisableSocketPooling to TRUE, I tried starting the apache service. But Apache gave out a error stating that it could not bind to the mentioned IP (the second one).

After doing some googling, I came across a useful FAQ from Macromedia site which was explaining how to setup breeze server and IIS 6.0 on the same server. It also had a link to a Microsoft KB Article which explained the reason why IIS 6.0 is taking up all the present IP's on the server and how do we go about installing more than one application which listens on port 80 using different IP's.

It seems that just setting DisableSocketPooling to TRUE would not help in the case of IIS 6, so we need to make use of a utility called Httpcfg which comes in the Support tools directory of windows installation CD to make the IIS 6 to listen on specific IP's.

And also, after following the instruction to set the listening IP list for IIS 6, just restarting the IIS service is not sufficient; the HTTP service has to be restarted; which can be accomplished using the following commands:

net stop http /y

net start w3svc

Now all is fine and both IIS 6 and Apache are running along side happily :)


Feedback

# re: Running IIS 6.0 and Apache on Port 80 on a single system with different IP's

Gravatar Cool, this is exactly what I was looking for. Thanks! 8/3/2005 2:29 PM | John

# re: Running IIS 6.0 and Apache on Port 80 on a single system with different IP's

Gravatar Thank you! By reading this article, I solve the same problem. 10/17/2006 6:47 PM | cccqcn

# re: Running IIS 6.0 and Apache on Port 80 on a single system with different IP's

Gravatar great article! work for me.. thanks 6/11/2007 5:30 AM | ari

# re: Running IIS 6.0 and Apache on Port 80 on a single system with different IP's

Gravatar this did NOT work for me. I've got a windows 2003 SP2 Server x64 box running apache tomcat 5.5 and IIS 6. the apache server went in first so it is listening on port 80. I can get the IIS servers to work on port 80, but NOT on port 80 on other IPs. I have followed these instructions that you mentioned above and have not got any results. any help would be appreciated.
7/10/2008 8:38 AM | John

Post a comment





 

Please add 2 and 6 and type the answer here:

 

 

Copyright © CodeCanvas