web.config and authentication in sub-dirs
From: Jonah Olsson (jonah@generationsoftware.se)
Date: 12/15/02
- Next message: Roger: "Re: securirty differences Win 2K and Win XP"
- Previous message: Mike Moore [MS]: "Re: app config file downloading (not) for winform deployment model"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Jonah Olsson" <jonah@generationsoftware.se> Date: Sun, 15 Dec 2002 00:34:15 +0100
Hi,
I know this subject has been brought up a number of times, but after doing
several searches of the newsgroups using Google to find an answer, I still
haven't found it...
I'm in need of two separate login pages for two different sub-dirs. Here's a
brief site layout:
Root (no login required / login page for Press)
- Admin (login required, has it's own login page)
- Press (login required, go to root for login page)
...
The root has an web.config file which looks like this:
<configuration>
<system.web>
<customErrors mode="Off"/>
<globalization
culture="sv-SE"
uiCulture="sv-SE"
/>
<authentication mode="Forms">
<forms name="xxxAuth"
loginUrl="/xxx_com/default.aspx"
protection="All"
timeout="20" />
</authentication>
<authorization>
<allow users="*" />
</authorization>
</system.web>
<location path="press">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="admin">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>
But how can I add like;
<forms name="xxxAdminAuth"
loginUrl="/xxx_com/admin/login.aspx"
protection="All"
timeout="20" />
to get separate login the the admin pages? Another web.config in the
sub-dirs just returns the famous MachineToApplication error..
Thanks for any kind of help
/Jonah
- Next message: Roger: "Re: securirty differences Win 2K and Win XP"
- Previous message: Mike Moore [MS]: "Re: app config file downloading (not) for winform deployment model"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|