服务器 
首页 > 服务器 > 浏览文章

iis7.5 批量删除处理程序映射的方法

(编辑:jimmy 日期: 2024/11/15 浏览:3 次 )

因为服务器目前只需要支持php,那么就可以把asp,asp.net都删除了。iis7.5比较好的一点就是全部通过根目录的web.config控制,下面提供这个文件,大家就可以参考一下了

iis7.5 批量删除处理程序映射的方法

<"1.0" encoding="UTF-8"?>
<configuration>
 <system.webServer>
  <handlers>
   <remove name="TRACEVerbHandler" />
   <remove name="OPTIONSVerbHandler" />
   <remove name="WebServiceHandlerFactory-ISAPI-2.0-64" />
   <remove name="WebServiceHandlerFactory-ISAPI-2.0" />
   <remove name="WebServiceHandlerFactory-Integrated" />
   <remove name="WebAdminHandler-Integrated" />
   <remove name="TraceHandler-Integrated" />
   <remove name="SSINC-stm" />
   <remove name="SSINC-shtml" />
   <remove name="SSINC-shtm" />
   <remove name="SimpleHandlerFactory-ISAPI-2.0-64" />
   <remove name="SimpleHandlerFactory-ISAPI-2.0" />
   <remove name="SimpleHandlerFactory-Integrated" />
   <remove name="SecurityCertificate" />
   <remove name="PageHandlerFactory-ISAPI-2.0" />
   <remove name="PageHandlerFactory-Integrated" />
   <remove name="HttpRemotingHandlerFactory-soap-ISAPI-2.0-64" />
   <remove name="HttpRemotingHandlerFactory-soap-ISAPI-2.0" />
   <remove name="HttpRemotingHandlerFactory-soap-Integrated" />
   <remove name="HttpRemotingHandlerFactory-rem-ISAPI-2.0-64" />
   <remove name="HttpRemotingHandlerFactory-rem-ISAPI-2.0" />
   <remove name="AXD-ISAPI-2.0-64" />
   <remove name="HttpRemotingHandlerFactory-rem-Integrated" />
   <remove name="AXD-ISAPI-2.0" />
   <remove name="AssemblyResourceLoader-Integrated" />
   <remove name="PageHandlerFactory-ISAPI-2.0-64" />
   <remove name="ASPClassic" />
  </handlers>
 </system.webServer>
</configuration>

其实就是通过 <remove name="" />进行删除的,如果想恢复指定的某个映射,可以删除对应的名称即可。

上一篇:Tomcat服务器安装配置教程(win7)
下一篇:Tomcat安装配置方法图文教程