如何在iis7上复制/克隆网站 [英] How can I copy/clone a site on iis7

查看:478
本文介绍了如何在iis7上复制/克隆网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作我正在研究的iis网站的dev,demo1,demo2副本。我需要每个iis都运行自己的代码库,但设置几乎相同。在Windows 7中是否有一种简单的方法可以将我的dev iis克隆到一个新站点,而无需完全重新配置它?为每个iis配置虚拟目录需要20分钟,所以这可以为我节省很多工作。

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.

推荐答案

看一看在 ApplicationHost.config文件。它应位于c:\windows \ system32 \inetsrv \ config下。这是一个包含所有IIS配置数据的XML文件。您可以手动修改此文件以快速创建网站副本。如果您遇到问题,请务必先备份。

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.

这篇关于如何在iis7上复制/克隆网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆