Forum Discussion
David Levine
Aug 27, 2019Brass Contributor
Manage IIS Settings via ApplicationHost.Config vs. Web.Config
I have an IIS setup where multiple websites exist that all share the same document root. Each of the websites have a specific default document though. This has been managed in the past by manually ...
- Aug 27, 2019
Dave Patrick
Aug 27, 2019MVP
David Levine
Aug 28, 2019Brass Contributor
Yep - that did it...
PS C:\Windows\system32\inetsrv> .\appcmd.exe set config "testsite2" /section:defaultDocument /enabled:true "/+files.[value='site2-home.html']" /commit:APPHOST
Applied configuration changes to section "system.webServer/defaultDocument" for "MACHINE/WEBROOT/APPHOST/testsite2" at configuration commit path "MACHINE/WEBROOT/APPHOST"
Thank you so much!!
- Dave PatrickAug 28, 2019MVP
Glad to hear, you're welcome.
(please don't forget to mark my reply as best response)