Web.Config settings.
From: Sunit Joshi (sjoshi_at_ingr.com)
Date: 08/26/03
- Next message: Tim Almond: "Is Server.Transfer secure?"
- Previous message: Luca: "Help on protect sub-directories with roles"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 26 Aug 2003 06:51:22 -0700
Hello All
I have setup my web.config file the following way and was wondering if
it's correct. Basically I want to deny access to un-authenticated
users except for some special folders and files.
<authentication mode="Forms">
<forms name="SkmLogin" loginUrl="Users/Login.aspx"
timeout="60"></forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
<!-- Special Folder at the root -->
<location path="Config">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<!-- Special file -->
<location path="Users/RetrievePwd.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
But somehow the ASPNET user is unable to read a file from Config
folder eventhough I have set allow ="*"
Any ideas what might be wrong here..??
thanks
Sunit
- Next message: Tim Almond: "Is Server.Transfer secure?"
- Previous message: Luca: "Help on protect sub-directories with roles"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|