配置IIS7保护静态内容

IIS7的Forms Authentication and URL Authorization默认是不验证静态内容的访问权限的,这是为了向前兼容,加了一个precondition,从而只验证asp.net的内容。去掉这些precondition的方法是在web.config里面加上下面的配置。
 
 
        
       
        
        
        
        
 
 
posted @ 2011-10-31 18:35  KymoWang  阅读(440)  评论(0编辑  收藏  举报