Creating Virtual Directories

If your Web site contains files that are located on a different drive than the home directory, or on other computers, you must create virtual directories to include those files in your Web site. To use a directory on another computer, you must specify the directory’s Universal Naming Convention (UNC) name and provide a user name and password to use for access permission.

To create a virtual directory
  1. In the Internet Information Services snap-in, select the Web site or FTP site to which you want to add a directory.
  2. Click the Action button, and then point to New, and select Virtual Directory.
  3. Use the New Virtual Directory Wizard to complete this task.

Tip   If you are using NTFS, you can also create a virtual directory by right-clicking a directory in Windows Explorer, clicking Sharing, and then selecting the Web Sharing property sheet.

To delete a virtual directory
  1. In the Internet Information Services snap-in, select the virtual directory you want to delete.
  2. Click the Action button, and select Delete. Deleting a virtual directory does not delete the corresponding physical directory or files.

Note   In IIS 3.0, any virtual directory not associated with a specific IP address was accessible from all Web sites hosted on the server. In IIS 4.0 and 5.0 this behavior was changed in order to make a virtual directory accessible from multiple Web sites using multiple IP addresses. To make a virtual directory accessible from multiple Web sites that use multiple IP addresses, you must now add the virtual directory to each site.


© 1997-1999 Microsoft Corporation. All rights reserved.