Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I duplicate a website's settings in IIS7?

I'm going mad trying to get an ASP.NET application running on IIS7 (Server2008).

I have one web site set up in IIS7 which works fine. I'm trying to create another one now but I only get 404s for all .aspx files. The Handling Mappers are all different from the working site's. Is there any way I can duplicate the working site's settings so I don't have to go through 50 mappings manually.

Or is there a better way to get the correct settings?

removed dead ImageShack links

like image 723
Mr. Flibble Avatar asked May 08 '09 20:05

Mr. Flibble


People also ask

How do I clone a website in IIS?

applicationHost\sites ') find the site that you want to get duplicated (It will have same name as in IIS Management studio) then copy that site section and paste it below inside <sites> then assign new site section new id and name attributes that have not been used yet name="Test1" id="5" .

How do I open an applicationHost config file?

Step 1: Open applicationHost. Click Start, click Run, and in the Open: dialog box, type notepad and Click OK. Click File, then Open, and in the File name: dialog box, type %windir%\system32\inetsrv\config\applicationHost. config . Click Open.

What is CFG history?

The configuration history feature requires that the Application Host Help Service is running on your server; if this service is stopped or disabled, changes to your configuration files will not be kept in the history folder.


1 Answers

IIS7's default configurations are held in c:\windows\system32\inetsrv\config\applicationHost.config

Any changes you make on a per site/application basis are stored in the web.config for that site/application.

You should be able to simply copy the files onto the second server.

like image 61
blowdart Avatar answered Sep 24 '22 06:09

blowdart