IIS 7 and Above
Configuration & Scripting
Web.config vs Location Tags in ApplicationHost.config
Last post Aug 25, 2019 05:57 AM by lextm
Aug 23, 2019 04:17 PM|shocko|LINK
Guys, new to IIS. When creating config items in the IIS admin UI tool it seems some setting go into applicationHost.confg files and others into Web.config files under the Sites and Virtual Directories within the site. What is the difference between the applicationhost.config
files and web.config files?
Aug 23, 2019 06:24 PM|Rovastar|LINK
Aug 25, 2019 05:57 AM|lextm|LINK
IIS Manager tends to save settings in web.config as much as possible, but if a section is locked down and changes must go to location tags in applicationHost.config, then it writes there as well.
If you really want to know the ideas behind, you can read articles such as https://docs.microsoft.com/en-us/iis/get-started/planning-your-iis-architecture/the-configuration-system-in-iis-7 You
can also refer to open source projects, such as Jexus Manager (an IIS Manager clone).