The Woes of Windows XP... one website? or more?

Recently I was forced to reinstall XP on my lappy. First off the wireless card hated Vista, and well... I'm not a fan of having a laptop in a stationary place... I like to "roam".

So, rather than go through the plain ol' WinXp install, I decided to try LastXP. I already own XP, Office 2007, VS 2005 etc. so I have no qualms whatsoever in installing LastXP. (One thing nice about LastXP is that you can have the Vista Sidebar, task switching, etc. all with it).

So now I'm back on XP. I go and refresh my Development folders, and bring over the few websites I'm working with and then it hits me: "ONLY ONE WEBSITE ON XP!?!?!"... Yea, that bummed me out.  However, I did find a beautiful script that allows me to bypass this "one website" crap that was forced onto me.

So, How do you get mulitple sites? Well it's quite easy actually, all you need to do is run one simple script.

  1. Go to: c:\inetpub\adminscripts
  2. type: cscript adsutil.vbs COPY W3SVC/1 W3SVC/2
What this does is copy IIS Site #1 to IIS site #2. If #2 isn't there, it creates it. There are a few issues with this... the main one being you cannot delete a website, however besides that point it functions in the same way as it would on Server 2000.

To Delete a website you need to go back to c:\inetpub\adminscripts and run: C:\Inetpub\AdminScripts\adsutil.vbs delete W3SVC/2

And there you go. Oh, one more thing. You can only have 1 site running at a time. Which is usually ok for me because I always have IIS open, so switching one on and one off is easy. And even if I didn't have IIS open at all times, having multiple sites makes my life so much easier.

 

1 Comment

Comments have been disabled for this content.