An easy way to migrate the root web application to a child application of another site?
We have an IIS 7 site that is really very complex and also undocumented (lots of virtual directories, child applications, etc.).
We want to move it from its current position (www.xyz.com) to a child folder of another site (www.abc.com), effectively doing something like www.abc.com/xyz/<site files>
Obviously, you cannot drag and drop it to another site, so I was wondering if there is a "easy" way to copy this web app to another folder rather than going through every setting of the / iis 7 folder.
a source to share
Since all IIS7 settings are stored in web.config files in each subfolder, this should be pretty straightforward. Try to simply create a new application under / xyz and point it to the same folder pointed to by www.xyz.com.
The only problem is the web.config at the root of www.abc.com, which may conflict with the web.config at www.abc.com/xyz. Then you need to override in www.abc.com/xyz
I've never done this for a complex web app, but hopefully it works;)
a source to share