Cool Utility to Use Multiple IIS Sites on Windows XP

Gabe forwarded me a pointer to a cool utility he worked on which enables you to define and switch between multiple sites with IIS on Windows XP -- which out of the box only allows you to define one site (note: you can have multiple applications underneath the site -- but only one unique port or hostname combination).  The utility allows you to define multiple sites, and then quickly switch which site is "active" at a particular time.

You can download the utility as well as the C# source code for it here.

Hope this helps,

Scott

P.S. I always thought the one site limitation was silly.  We are changing to support multiple sites on Windows client with IIS7...

Published Thursday, February 16, 2006 12:44 AM by ScottGu

Comments

# re: Cool Utility to Use Multiple IIS Sites on Windows XP

Thursday, February 16, 2006 7:11 AM by Wilco Bauwer
When using XP SP2 (and 2k3) it should be possible to run multiple sites on the same port, as long as the webserver is built on top of HTTP.SYS. .NET 2.0 comes with a HttpListener which is a managed wrapper around HTTP.SYS and makes it relatively easy to build such a webserver. I'm not sure if anyone using XP actually has a reason to run multiple sites at once, but if they do, they could take a look at http://www.wilcob.com/Wilco/Toolbox/WebDevWebServer2.aspx.

# re: Cool Utility to Use Multiple IIS Sites on Windows XP

Thursday, February 16, 2006 12:53 PM by lynn
>>> We are changing to support multiple sites on Windows client with IIS7...

Thanks - that will be very helpful.

# re: Cool Utility to Use Multiple IIS Sites on Windows XP

Friday, March 03, 2006 1:54 PM by Ward Bekker
Great news that IIS7 will support multiple sites. Funny that that feature is added when we don't really need it that much anymore now VS2005 has it's on development webserver based on Cassini. But for the retro folks it might be still a nice feature!

# re: Cool Utility to Use Multiple IIS Sites on Windows XP

Monday, March 13, 2006 9:40 PM by Keith
Glad to hear IIS 7 will support multiple sites... Any chance that IIS7 will be available for WinXP or 2003 as an upgrade?

# re: Cool Utility to Use Multiple IIS Sites on Windows XP

Tuesday, March 14, 2006 1:42 PM by scottgu
Hi Keith,

Unfortunately IIS7 is only available on Windows Vista and Longhorn Server.

Sorry!

- Scott