Solved

IIS 7 Shared Configuration - Machine Specific Values

Posted on 2009-07-15
10
709 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
Comment Utility
put host specific configuration into %systemroot%/system32/inetsrv/config/applicationhost.config

Cheers.
0
 

Author Comment

by:zippo76
Comment Utility
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
Comment Utility
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
 

Author Comment

by:zippo76
Comment Utility
No, iis7 shared config on a dfs.  The local applicationhost.config is not used in favor of the shared one.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 51

Expert Comment

by:tedbilly
Comment Utility
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
Comment Utility
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:tedbilly
Comment Utility
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:tedbilly
Comment Utility
Award full points so http://#24930417
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

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…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now