首页 > 网站 > IIS > 正文

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

2024-08-29 03:16:25
字体:
来源:转载
供稿:网友

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

处理程序映射,批量删除,iis7.5

<?xml version="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="" />进行删除的,如果想恢复指定的某个映射,可以删除对应的名称即可。

 

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表