First: not everything works in a <location>
block.
I cannot find a positive statement that <system.webServer>
isn't supported in a <location>
, but I cannot find any cases where it is suggested that it is allowed. Evidence for this is in the (global) machine.config
where the system.webserver
section is defined to use the IgnoreSection
handler: ie. it isn't processed by the standard System.Configuration
implementation, and it is that standard implementation of config handling that provides support for <location>
.
Try adding a web.config
into the Cms
folder with the directoryBrowse
element to confirm that browsing is blocked.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…