上级的webconfig不被子级应用程序继承

如下所示:
<location path="." allowOverride="true" inheritInChildApplications="false">
    <system.web>
        <httpModules>
        <add name="UrlRewriteModule" type="UrlRewritingNetUrlRewriter" />
    </httpModules>
    </system.web>
</location>
在上级的webconfig的system.web节点上套一层<location path="." allowOverride="true" inheritInChildApplications="false">配置

path 不用说指定的是一个目录
allowOverride 指是否可以将这个重写
inheritInChildApplications 指是否被子级应用程序继承
posted @ 2009-09-16 14:19  YaSin  阅读(340)  评论(0编辑  收藏  举报