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
Solved

IIS 7 Shared Configuration - Machine Specific Values

Posted on 2009-07-15
10
712 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
  • 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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