Pages

Tuesday, January 4, 2011

windows 2008 and IIS7

Question : - I want to create a virtual directory which will be accessed anonymously. The virtual directory home is located on a network shared storage, I will use the UNC to connect to this folder. Is it possible to create such directory using UNC on IIS 7? How can I pass the authentication? Is there any document or guide? 


Apply to 
Operating System : Windows 2008
Web Server : IIS 7 , IIS 7.5


My Solution : -
Create an account on the UNC server that has the same username and password as the user account that is being used to access Web pages on the IIS server. Both the connect as user and the authenticated user (the user that is connecting from the Web browser) need to have the appropriate NTFS permissions on the UNC share to access the content. Note that the files on the UNC server should be treated as content.
Let's Name it "UNCUser"
Steps to create a Virtual Directory :
To add a virtual directory

  Open IIS Manager
 ->      In the Connections pane, expand the Sites node in the tree, and then click to select the site in which you want to create a virtual directory.
->       In the Actions pane, click View Virtual Directories.
->       On the Virtual Directories page, in the Actions pane, click Add Virtual Directory.
->      In the Add Virtual Directory dialog box, type a name in the Alias text box. This alias is used to access the content from a URL.
->      In the Physical path text box, type the UNC path of the content folder, or click Browse to navigate through the file system to find the folder.
->       Optionally, click Connect as to specify credentials that have permission to access the physical path , User '"UNCUser"" which we create above. Doing this will null the requirement of Pass-thru.
->       Optionally, click Test Settings to verify the settings that you specified for the virtual directory.
 ->     Click OK.

Save all Changes

Cheers


****AS IS**** ; Please apply at your own risk.

No comments:

Post a Comment