Link to home
Start Free TrialLog in
Avatar of zippo76
zippo76

asked on

IIS 7 Shared Configuration - Machine Specific Values

We are investigating using shared configuration and dfs storage for our docroots.  My question is we have specific config values in our .net app for each server in the farm.  What is the way to achieve this config?
Avatar of meverest
meverest
Flag of Australia image

put host specific configuration into %systemroot%/system32/inetsrv/config/applicationhost.config

Cheers.
Avatar of zippo76
zippo76

ASKER

But if this is also a shared config, the application host is also shared.
ASKER CERTIFIED SOLUTION
Avatar of meverest
meverest
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zippo76

ASKER

No, iis7 shared config on a dfs.  The local applicationhost.config is not used in favor of the shared one.
Settings in the machine.config and applicationhost.config are the correct locations for these type of settings.  Use the web.config file for settings that work on any server and the applicatiohost.config for machine specific settings. meverest gave you the correct answer.

BTW: What settings are unique to each machine?
Avatar of zippo76

ASKER

96% of our configs are the same.  Its a few keys in appsettings (ie:  google maps api and a few custom values).  The issue w/ using machine config is that we have multiple clone sites on each box where those same appsetting values will change.  So i we had a key XXX w/ 999 as the  in the appsetting on server1 port 80, i need XXX to have a value of 888 on server2 port 80 and a value of 777 back on Server1 port 82.
I've done some searches and am receiving conflicting results regarding local override of the shared configuration.  According to some you can use the local web.config to override each local web application.  You might have to setup a test and try it.
Award full points so http://#24930417