In the left pane, browse to the folder you want to share.
Right-click on the folder and select Sharing and Security (or Sharing on Windows 2000).
Select the Web Sharing tab.
Select Share this folder.
A dialog box appears with the settings you can configure for the web share. Click OK when you are done.
Click OK to close the dialog box.
To use Web Sharing, you must have IIS installed and running. When you create a web share, you are doing nothing more than creating a virtual directory in IIS. See Recipe 12.5 for more on virtual directories.
The security for a web share is a little different from a regular share: you have to select the access permissions and application permissions you want to use. Here is a list of access permissions:
Allows web users to read files in the folder
Allows web users to write files in the folder
- Script source access
Allows web users to view the source code of scripts in the folder
- Directory browsing
Allows web users to browse the folder contents
And here are the application permissions:
Does not allow the execution of scripts or programs
Allows the execution of scripts, but not programs
Allows the execution of both scripts and programs
Keep in mind that NTFS and Web server permissions also apply to
web shares. If the user is accessing the share without authenticating,
the permissions will be based on the IUSR account IIS is running under
the user authenticates, permissions will based on his or her