How do I configure IIS so my Web.config is determined by URL?

Posted by Scott Stafford on Server Fault See other posts from Server Fault or by Scott Stafford
Published on 2010-02-17T16:03:18Z Indexed on 2010/03/23 8:03 UTC
Read the original article Hit count: 387

I am running a test rig with IIS6 serving an ASP.NET (and Sharepoint) web site. We have several clients, and so we have custom root Web.config files for each client.

For this test rig, I want to just serve straight from the Trunk of our source control. However, I'd like to be able to select different root Web.config files based on the URL (or port or whatever) I use to access the site, so I can just use one checkout of the source and run all the sites with their appropriate settings.

Is this possible?

© Server Fault or respective owner

Related posts about iis

Related posts about iis6