Setting up Multiple Web Sites with IIS on Windows XP
XP's limitation of allowing only one Virtual IIS Server has always been somewhat of a hurdle when doing .NET development on XP. I recently found a workaround for this problem.
Open up a command prompt and make C:\Inetpub\AdminScripts the active directory.
Setting up a second web site:
cscript.exe adsutil.vbs create_vserv W3SVC/2
Copying settings from one web site to another:
cscript.exe adsutil.vbs copy W3SVC/1 W3SVC/2
Deleting a web site:
cscript.exe adsutil.vbs delete W3SVC/2
The only limitation here is, that you can only have one of the web sites running at the same time.
Written By: mycodeshare on July 27, 2009 at 13:41
Submit a comment, suggestion, or additional information about this snippet
If you login or register,
you'll be able to post a comment or provide feedback about this snippet.