How can I copy/clone a site on iis7

Agile Noob picture Agile Noob · Mar 15, 2011 · Viewed 49.7k times · Source

I want to make a dev, demo1, demo2 copy of the iis website I'm working on. I need each iis to run off its own code base, but the settings will be almost identical. Is there an easy way in windows 7 ultimate to clone my dev iis to a new site without having to completely reconfigure it? To configure the virtual directories for each iis takes 20 mins plus so this could save me a lot of work.

Answer

David picture David · Mar 15, 2011

Take a look at the ApplicationHost.config file. It should be located under "c:\windows\system32\inetsrv\config". This is an XML file that contains all of the IIS configuration data. You can manually modify this file to quickly create copies of your website. Just make sure to make a backup first in case you have problems.