• ASP.NET 访问路径 错误提示 HTTP 错误 404.8 原来路径中包含bin目录被拒绝


    HTTP 错误 404.8 - Not Found

    HTTP 错误 404.8 - Not Found

    请求筛选模块被配置为拒绝包含 hiddenSegment 节的 URL 中的路径。

    最可能的原因:

    • 为 Web 服务器配置了请求筛选,它包含 hiddenSegments 节,允许服务器管理员拒绝对特定目录的访问。

    可尝试的操作:

    • 确认 applicationhost.config 或 web.config 文件中的 configuration/system.webServer/security/requestFiltering/hiddenSegments 设置。

    请求筛选模块被配置为拒绝包含 hiddenSegment 节的 URL 中的路径。

    详细错误信息

    模块   RequestFilteringModule
     

    通知   BeginRequest

    处理程序  StaticFile

    错误代码    0x00000000

    请求的 URL http://www.9i9i9i.com:80/help/bin/detail/1-3-17.html

    物理路径f:usrLocalUserhgc21013helpindetail1-3-17.html

    登录方法尚未确定登录用户尚未确定

    最可能的原因: 

    • 为 Web 服务器配置了请求筛选,它包含 hiddenSegments 节,允许服务器管理员拒绝对特定目录的访问。 

         可尝试的操作: 

      确认 applicationhost.config 或 web.config 文件中的 configuration/system.webServer/security/requestFiltering/hiddenSegments 设置。 

     解决方法:

              

    只需要将bin文件夹从新命名,就可以正常访问.

    在系统盘 C:WindowsSystem32inetsrvconfig 下有一个applicationHost.conf文件,内包含这么一段代码:

    1. <hiddenSegments applyToWebDAV="true"

    2.           <add segment="web.config" /> 

    3.           <add segment="bin" /> 

    4.           <add segment="App_code" /> 

    5.           <add segment="App_GlobalResources" /> 

    6.           <add segment="App_LocalResources" /> 

    7.           <add segment="App_WebReferences" /> 

    8.           <add segment="App_Data" /> 

    9.           <add segment="App_Browsers" /> 

    10.         </hiddenSegments

    将  <add segment="bin" /> 删除以后,重启iis解决问题了 

     不过因为.net里面使用到bin文件夹,里面涉及到一些安全问题,所以不得已只好恢复原来样式,

    所以建议用户在编写网站的时候不要包含类似系统常用的的或者软件常用的文件夹作为你的网站文件夹,避免造成不必要的麻烦。

    转自:http://www.kesion.com/3G/view.aspx?m_id=1&id=43739

  • 相关阅读:
    03.通过商品课程初心商品信息
    04.支付宝支付流程
    02.创建商品(表)应用(App)
    01.商品模块表结构
    七牛云上传视频
    Django之序列化器
    Django之抽象基类
    权限系统
    python实现简单工厂模式
    01.git基本操作
  • 原文地址:https://www.cnblogs.com/shouwu/p/4972723.html
Copyright © 2020-2023  润新知