Loading
0

iis7/iis8/iis10下web.config 取消禁止asp或者aspx执行权限、取消脚本权限

iis7/iis8/iis10下web.config 取消禁止asp或者aspx执行权限、取消脚本权限
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
	<system.webServer>
		<handlers>
		<!-- 取消asp文件执行-->
		<remove name="ASPClassic" />
		<!-- 取消aspx 执行-->
		<remove name="PageHandlerFactory-ISAPI-4.0_64bit" />
		<remove name="PageHandlerFactory-ISAPI-4.0_32bit" />
		<remove name="PageHandlerFactory-ISAPI-2.0-64" />
		<remove name="PageHandlerFactory-ISAPI-2.0" />
		</handlers>
		<!-- 取消脚本执行-->
		<handlers accessPolicy="Read" />
		<!-- 允许脚本执行-->
		<handlers accessPolicy="Read, Script" />
	</system.webServer>
</configuration>

声明:站长码字很辛苦啊,转载时请保留本声明及附带文章链接:http://blog.tag.gg/showinfo-8-35519-0.html

最后编辑于:2019-07-20 17:41:26作者:

上一篇:处理报错方法An error occurred on the server when processing the URL. Please contact the system administrat
下一篇:IIS7/IIS8/IIS10下将.htaccess伪静态规则转换为web.config规则方法