Last post May 23, 2015 04:53 AM by Ruchira
May 04, 2015 05:57 PM|Jim Shea|LINK
I am new to IIS8 on windows server 2012 R2. I would like my public site to allow anonymous users to view it without bothering them for credentials. I would also like to have an Admin subdirectory that requires windows authentication. Is that possible?
If so, how?
May 05, 2015 03:59 AM|Zhi Lv - MSFT|LINK
Hi Jim Shea,
To enable Windows Authentication within an ASP.NET Application, you should make sure that you have “Integrated Windows Authentication” (formerly called NTLM authentication) enabled within IIS for the application you are building. You should then add a web.config
file to the root directory of your ASP.NET application that contains an <authentication> section which sets the mode to “Windows”. Like this:
<authentication mode="Windows" />
For more details, please see:
Besides, here are some relevant articles about Windows Authentication, please refer to them.
May 05, 2015 08:50 AM|Jim Shea|LINK
Correct me if I am wrong, but that will require all visitors to the site to have windows credentials. I do NOT want all users to be prompted for credentials (or even have credentials). Only those who will administer the site by going to the pages in the
Admin subdirectory. Visitors to the main pages should not be prompted for any credentials.
May 23, 2015 04:53 AM|Ruchira|LINK
Probably try this - http://stackoverflow.com/questions/7356638/configuring-subdirectory-authentication-mode-in-applications-hosted-under-root-s
Please 'Mark as Answer' if this post helps you