zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    451. Sort Characters By Frequency
    424. Longest Repeating Character Replacement
    68. Text Justification
    44. Wildcard Matching
    160. Intersection of Two Linked Lists
    24. Swap Nodes in Pairs
    93. 递归实现组合型枚举
    98. 分形之城
    97. 约数之和
    96. 奇怪的汉诺塔
  • 原文地址:https://www.cnblogs.com/shouwu/p/4972723.html
Copyright © 2011-2022 走看看