I have inherited some very old asp code. I need to resolve a design problem because of it, described below.
I have 3 customers... Foo, Bar and Baz.
I have a folder called...
c:\WebSites\Site.v15.07
I have 3 websites in IIS defined as...
Website.Foo
Website.Bar
Website.Baz
They all point to the 15.07 directory.
There are 3 other folders called...
c:\WebConfigurations\Foo
c:\WebConfigurations\Bar
c:\WebConfigurations\Baz
... which all contain client specific files for each of the 3 sites. Uploaded images etc.
Each of the 3 customers has their own database that the website sits on.
I need to set (ideally, using a web.config) the connection string for each of the 3 sites.
If I put this in the web.config in the root of the website directory, they will all share the same setting.
Is there a way of adding the settings/web.config in IIS at the "website" level so that each site can be set differently?