asp.net web config authorization sub folders

2019-09-15 19:59发布

问题:

I want to check under the parent folder and all folders but it does not.

<location path="admins">
<system.web>
  <authorization>
    <allow roles="Admin"/>
    <deny users="*"/>
  </authorization>
</system.web>

Parent folder OK. but sub folder everyone to public