zoukankan      html  css  js  c++  java
  • IIS7.5 自定义Html/shtml/htm...后缀映射

    以添加html后缀的文件的 映射为例:

    1.打开iis管理器,点击

    2.点击打开处理程序映射

    3.添加托管处理程序映射

    4.请求路径 *.html  类型: System.Web.UI.PageHandlerFactory  名称:Html-Integrate  确定

    5.添加处理脚本映射

    6.请求路径 *.html  可执行文件为:C:WindowsMicrosoft.NETFramework64v4.0.30319aspnet_isapi.dll (请根据具体情况修改)  名称:htmlRequest(随意)

     7.重启IIS

    Appcmd.exe命令实现:

    %windir%system32inetsrvappcmd set config /section:handlers /+[name='Html-Integrate',path='*.html',verb='GET,HEAD',type='System.Web.UI.PageHandlerFactory',preCondition='integratedMode']
    

      

  • 相关阅读:
    PHP之目录遍历
    PHP之验证码
    PHP之验证码
    PHP之异常处理模式
    PHP之pdo的预处理模式
    PHP之PDO
    PHP之cookie和session
    PHP之MVC
    单例模式
    ThreadLocal
  • 原文地址:https://www.cnblogs.com/iack/p/3703814.html
Copyright © 2011-2022 走看看