IIS / Virtual Directory authentication.

Posted by Chris L on Server Fault See other posts from Server Fault or by Chris L
Published on 2010-06-14T20:16:24Z Indexed on 2010/06/14 20:23 UTC
Read the original article Hit count: 282

Filed under:
|
|
|

I have an IIS(v6)/Windows 2003/.Net 3.5(app code, libraries etc.) server hosting a website at www.mywebsite.com mapped to E:\Inetpub\wwwroot\mywebsite, we also have a virtual directory (VirtDir) mapped out to E:\Inetpub\wwwroot\mywebsite\files (although in theory this could be in a different directory or a separate machine) where we store a customer's files(a bunch of .pdf & .xls). Currently to access a file you can enter into the url something like: www.mywebsite.com/VirtDir/Customer/myFile.pdf and get access to the file.

The problem is the user doesn't have to log into www.mywebsite.com to get access to the file, we would prefer them to log in first. We would like the user to login via the mywebsite and if valid, let them download files from the virtual directory. The www.mywebsite.com and VirtDir are separate sites on the same farm. Allow Anon Access, and Integrated Windows Authentication both enabled.

I'm more of a developer and less of a Sys Admin, but hopefully I'm in the right spot, any help would be appreciated.

© Server Fault or respective owner

Related posts about iis

Related posts about authentication