禁止web.config重写

来源:互联网 发布:淘宝卖家处理退货申请 编辑:程序博客网 时间:2024/06/06 01:46

解决对虚拟目录中的web.config继承主目录中web.config的问题
 
1》站点要.net2.0的环境
2》根目录下的web.config 用<location path="." allowOverride="false" inheritInChildApplications="false"></location>来限止web.config的一些继承

path:指定的是一个目录
allowOverride:指是否可以将这个重写
inheritInChildApplications:指是否被子级应用程序继承

原创粉丝点击