I'm a technologist at heart with a passion for emerging products and early stage companies.  Simple timing put me in the right place at the right time and gave me several opportunities to help shape the Internet during its formative years.  My education came via hands-on product development, a stint at NYU and side-by-side work with some of the most innovative minds in software.  

This form does not yet contain any fields.
    « 1968 Shelby Cobra | Main | Time Warner Reveals New Plan to Drive Away Customers »
    Wednesday
    Jan302008

    How to Fix IIS IP issues with HTTPCFG

    We run a rather diverse set of web based applications at my company, and many times we have to run them from the same box, to cost down on costs. I recently found myself being forced to reclaim a few IPs on one of our web servers from Apache for IIS.

    In a normal world when you assign an IP address to a service, it only takes over that IP. In the microsoft world, when you start IIS it takes over port 80/443 for EVERY IP address on the machine. This is one of those times we must all say "Thanks" to Mr. Gates. Don't get me wrong, IIS is easy and usualy does well, but trying to run IIS and Apache on the same machine, well thats like trying to make some AJAX work in both IE and Firefox.

    Once you use HTTPCFG to configure the IPs assigned to IIS, and Apache, MSDN tells you to restart IIS and you'll be fine. Thats just NOT TRUE!! If you restart IIS with the service console, it will not accept the changes you just made with HTTPCFG.

    In order to immediately configure the changes you made you simply stop and restart the HTTP services via the command line like so:

    step 1: net stop http /y

    step 2: net start w3svc

    Don't ask me why, but this works and the MMC method doesn't.

    Reader Comments (2)

    Indeed, an annoying situation. I didn't know about the Service Console part of it.

    Seemed to me that if I had the IIS config window open while using httpcfg, my changes wouldn't been seen until I had rebooted.

    So weird. I blogged about it on my http://www.dawning.ca/2009/iis-and-apache/" rel="nofollow">site too.

    June 25, 2009 | Unregistered Commenterjamessnell

    Ugh, yeah, I had to fight with this issue yesterday.

    Thanks for posting on it.

    Here's http://www.dawning.ca/2009/iis-and-apache/" rel="nofollow">my own post on making this all work out.

    June 25, 2009 | Unregistered CommenterJaymus

    PostPost a New Comment

    Enter your information below to add a new comment.

    My response is on my own website »
    Author Email (optional):
    Author URL (optional):
    Post:
     
    Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>