首页 > 开发 > 综合 > 正文

beta2的web.config配置

2024-07-21 02:16:36
字体:
来源:转载
供稿:网友


<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <!-- application specific settings -->
    <appsettings>
        <add key="connectionstring" value="server=localhost;uid=sa;pwd=;database=store" />
    </appsettings>
    <!-- forms based authentication -->
    <system.web>
        <!-- enable forms authentication -->
        <authentication mode="forms">
            <forms name="ibuyspystoreauth" loginurl="login.aspx" protection="all" path="/" />
        </authentication>
        <!-- enable custom errors for the application -->
        <customerrors mode="remoteonly" defaultredirect="errorpage.aspx" />
        <!-- disable session state for application -->
        <sessionstate mode="off" />
    </system.web>
    <!-- set secure paths -->
    <location path="checkout.aspx">
        <system.web>
            <authorization>
                <deny users="?" />
            </authorization>
        </system.web>
    </location>
    <location path="orderlist.aspx">
        <system.web>
            <authorization>
                <deny users="?" />
            </authorization>
        </system.web>
    </location>
    <location path="orderdetails.aspx">
        <system.web>
            <authorization>
                <deny users="?" />
            </authorization>
        </system.web>
    </location>
</configuration>

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表