Re: web.config in subfolder
From: Daren Hawes (newsgroups_at_webdesignmagic.com.au)
Date: 08/19/04
- Next message: Daren Hawes: "Forms Security Authentication."
- Previous message: DownUnder: "Re: IIS Web Service 401 Error with Integrated Windows Authenticati"
- In reply to: Luke Ward: "Re: web.config in subfolder"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 18 Aug 2004 18:52:02 -0700
Hi I have just done that...
Modify your web config like this below.
This will allwo Anon users into your wesite.
<authentication mode="Forms">
<forms loginUrl="Agents_Login.aspx" name="sqlAuthCookie"
timeout="60" path="/" protection="All">
</forms>
</authentication>
<authorization>
<allow users="?" />
</authorization>
Now add this just after the last section of the config file. This will
work.
</system.web>
<!-- Folder
Deny access to this folder
-->
<location path="folder">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
</configuration>
Thanks Daren
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- Next message: Daren Hawes: "Forms Security Authentication."
- Previous message: DownUnder: "Re: IIS Web Service 401 Error with Integrated Windows Authenticati"
- In reply to: Luke Ward: "Re: web.config in subfolder"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|