Groups | Blog | Home
all groups > iis security > january 2008 >

iis security : Different web.config for Virtual Directories


Samuel
1/22/2008 5:47:53 PM
Hi

I have two virtual directories, pointing to the same asp.net application. I
want to have different web.config files as I use different authentication
methods for those two virtual directories.

Is there a simple way to solve this? so that i can have different web.config
for each virtual directory.

Thanks
Samuel
Pom
1/22/2008 9:12:01 PM
I suggest you add a second level of virtual directories then you create a
second virtual directorie within that will pointe to your apps. This at the
first level, you can have a web.config with a default page that will redirect
to the second level.

You can also implemente "form" authentication for both virtual and the one
that use Windows authentication, you fill in the username/password with the
httpcontext.user.identity. By the way I'm assuming you are using asp.net.
Have a look at: http://msdn2.microsoft.com/en-us/library/aa302397.aspx
AddThis Social Bookmark Button