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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.