Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I copy/clone a site on iis7

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.

like image 379
Agile Noob Avatar asked Mar 15 '11 21:03

Agile Noob


People also ask

How do I create a copy of my IIs website?

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.

How to copy a site from one IIs node to another?

Once you find the site you want to copy. Copy the entire node and paste it after the site node copied. Assign it a new ID. Be sure to check sites in IIS for all used IDs first !! Also be sure to give it a new NAME and update all PATHS and APPPOOLS in the copied section. See example below.

How to migrate a web site from IIS 6 to IIS 7?

Migrate a Web Site from IIS 6.0 to IIS 7 or above Prerequisites Part 1 - View your site's dependencies Part 2 - Configure the target Part 3 – Migrate your site to the target by using a package file {Optional - Migrate your site to the target by using the Web Deployment Agent Service} Summary

How do I synchronize a web site from a source IIS server?

You have now synchronized a Web site from a source IIS 6.0 server to a destination IIS 7 or above server by viewing the dependencies, configuring the destination IIS server, and by using a package file or the Web Deployment Agent Service.


1 Answers

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.

like image 51
David Avatar answered Sep 17 '22 13:09

David