zoukankan      html  css  js  c++  java
  • IIS7: applicationHost.config:requestFiltering

    在applicationHost.config文件中有如下一段

    configuration/system.webServer/security/requestFiltering/fileExtensions 该项内容是用来定义允许/禁止访问的特定扩展名的文件。

    还有configuration/system.webServer/security/requestFiltering/hiddenSegments 这项内容是用来定义不允许访问的某些文件夹,如:web.config, bin, App_code等


    Request filtering is configured for the Web server and the file extension for this request is explicitly denied.

    当客户请求requestFiltering中定义的需要过滤的文件时,会出现404错误,而在服务器上访问则会返回更详细的信息:

    HTTP Error 404.7 - Not Found

    The request filtering module is configured to deny the file extension.

    的错误。

  • 相关阅读:
    方法
    Go中的OOP
    GO 结构体
    指针
    闭包
    回调函数
    匿名函数
    函数的数据类型及本质
    defer语句
    递归函数
  • 原文地址:https://www.cnblogs.com/henryhappier/p/1660747.html
Copyright © 2011-2022 走看看