web.config 权限设置
2016-02-03 14:15 hbren 阅读(488) 评论(0) 编辑 收藏 举报<system.web> <authorization> <!--未登陆用户不可以访问--> <deny users="?" /> </authorization> <urlMappings enabled="true"> <!--防止访问目录必须登陆--> <add url="~/" mappedUrl="~/Default.aspx" /> </urlMappings> </system.web> <location path="dir"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> <location path="path"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location>