IIS 7 - Make a copy of a website

Hi.

I want to duplicate a running website in the the same IIS-server. Is it possible and is there an easy way to do this?
LVL 1
Sum WumAsked:
Who is Participating?
 
h4miCommented:
If set up correctly, the web.config file in the websites root folder should take care of most of that. If not, you could either try the Shared Configuration function in IIS7 or have a look in your system32\inetsrv\config\ApplicationHost.config file and copy the settings around for both sites.
0
 
h4miCommented:
You can simply duplicate the folder in where the website data sits, commonly C:\inetpub\websitename.

If the website is using an application pool you can either right-click the new folder in INETMGR and convert to application and make a new pool for it if necessary.
0
 
Sum WumAuthor Commented:
I want to duplicate the website, so it points at the same exact folders... Plus that any rights and applications pools are the same...

The reason why I want this, is because we need to assign 2 certificates to our website, one to our internal and one to our external site and we cant get a san cerifitcate because of our internal domain name...
0
 
h4miCommented:
I see. You can add a new website and just point it to the same physical folder in inetmgr. In the left pane, right click 'websites' and click 'add website'. Give it a name, like "websitename INTERNAL", set the physical path to the same as the normal external site and type the internal domain name as host header.
0
 
Sum WumAuthor Commented:
If I do that, I have to create all the virtual directories and applications from scratch and make sure that all the permissions, paths and application pools are right... Isnt there an easier way to do this?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.