62,046
社区成员
发帖
与我相关
我的任务
分享
<!--
通过 <authentication> 节可以配置 ASP.NET 用来
识别进入用户的
安全身份验证模式。
-->
<authentication mode="Forms">
<forms name=".ASPXFORUM" loginUrl="Login.aspx" defaultUrl="admin\main.aspx" path="/"/>
</authentication>
<authorization>
<allow users="?"/>
</authorization>
<!--
如果在执行请求的过程中出现未处理的错误,
则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
开发人员通过该节可以配置
要显示的 html 错误页
以代替错误堆栈跟踪。
-->
<customErrors mode="RemoteOnly" defaultRedirect="~/404.htm">
<error statusCode="403" redirect="~/403.htm"/>
<error statusCode="404" redirect="~/404.htm"/>
<error statusCode="500" redirect="~/500.htm"/>
</customErrors>
<httpHandlers>
<add verb="*" path="AuthCodeImage.aspx" type="SuperAuthenticationCode.ServerControl.AuthenticationCodeHandler"/>
</httpHandlers>
</system.web>
<location path="admin">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>