Solved

IIS 7 Shared Configuration - Machine Specific Values

Posted on 2009-07-15
10
716 Views
Last Modified: 2012-05-07
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?
0
Comment
Question by:zippo76
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
10 Comments
 
LVL 37

Expert Comment

by:meverest
ID: 24889149
put host specific configuration into %systemroot%/system32/inetsrv/config/applicationhost.config

Cheers.
0
 

Author Comment

by:zippo76
ID: 24927791
But if this is also a shared config, the application host is also shared.
0
 
LVL 37

Accepted Solution

by:
meverest earned 125 total points
ID: 24930417
Hi,

>> But if this is also a shared config, the application host is also shared.

shared %systemroot% between independent hosts?  That would not be a good idea! ;-)  Although you probably could acheive that technically, you will almost certainly end up with corrupted drives by each system attempting to write to the system disks at the same time.
0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 

Author Comment

by:zippo76
ID: 24930457
No, iis7 shared config on a dfs.  The local applicationhost.config is not used in favor of the shared one.
0
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 25000059
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?
0
 

Author Comment

by:zippo76
ID: 25003439
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.
0
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 25006760
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.
0
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 26040325
Award full points so http://#24930417
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question