因为服务器目前只需要支持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="" />进行删除的,如果想恢复指定的某个映射,可以删除对应的名称即可。

广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!