Authentication - All directories except root

C

csumner

Does anyone know if how i can require authentication for all
directories on my website except for the root directory, without
having to put a web.config file in each one?

(The documentation talks about giving different types of users access,
but i don't see anything about different directories having separate
security settings. I have a website where the root directory should be
accessible by anonymous users, and the directories which hold my
apps(members area, chat) should, of course, require authentication. If
I specify a web.config file for every directory, i have to make every
directory an app in iis, and it's messy. Isn't there a better way?)

Thanks,

CSumner
 
H

Hermit Dave

your root should have a web.config file.. use the <location> element to
specify the directories and the allow / deny... roles / users
(one location element per directory)

thats bout all you need to do...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top