asp.net 裏配置WebConfig 解決401.2和403.14的問題

IIS的401.2:拒絕訪問

webConfig設置

    <!--<authorization>
      <deny users="?"/>
    </authorization>-->
    <authorization>
      <allow users="?"/>
    </authorization>

IIS的403.14 禁止訪問

webConfig設置
  <system.webServer>
    <directoryBrowse enabled="true" />
  </system.webServer>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章