[This is preliminary documentation and subject to change]

# Creating Virtual Directories

If your Web site contains files that are located in a directory different from 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 IIS snap-in, select the Web site or FTP site to which you want to add a directory.
2. Click the Action menu, point to New, and clickVirtual Directory.
3. Use the Virtual Directory Creation Wizard to complete this task.

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

###### To delete a virtual directory

1. In the IIS snap-in, select the virtual directory you want to delete.
2. Click the Action menu, and click 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-2001 Microsoft Corporation. All rights reserved.