How to create a virtual directory in Windows 2000
This article was previously published under Q308135
This article has been archived. It is offered "as is" and will no longer be updated.
This article describes step-by-step how to create a virtual directory on an existing Web site in a Windows 2000 environment.
A virtual directory is a directory that is not contained within the Web site's home directory, but appears to client browsers as though it were. A virtual directory has an alias that is mapped to the physical location of the Web content. A client appends the alias to the URL of the Web site in order to browse the Web content in that virtual directory. The following table illustrates these mappings:
Both virtual directories and physical directories (directories without an alias) are listed in Internet Services Manager. A virtual directory is indicated by a folder icon with a globe in the corner.
|Physical location||Alias||URL path|
Create a folder in which to store the Web content
- In Windows Explorer, click the folder in which you want to create the new folder. For example: Inetpub.
- On the File menu, point to New, and then click Folder.
- In the New Folder name box, type the name that you want, and then press ENTER. For example, type Web Content, and then press ENTER.
Note To maintain a high level of security, do not create the Web content folder in the root directory of the hard disk.
- Close Windows Explorer.
Create a virtual directory
- Click Start, point to Programs, point to Administrative Tools, and then click Internet Services Manager.
- In the Internet Information Services window, expand the folder, "* server name" (where server name is the name of the server).
- Right-click the Web site that you want (such as Default Web Site), and then on the shortcut menu that appears, point to New, and click Virtual Directory to start the Virtual Directory Creation Wizard.
- On the Welcome to the Virtual Directory Creation Wizard screen, click Next.
- On the Virtual Directory Alias screen, type the alias that you want (such as Sales), and then click Next.
- On the Web Site Content Directory screen, type the path to the Web content folder that you have created (such as C:\InetPub\Web Content), and then click Next.
- On the Access Permissions screen, click Next, and then click Finish to complete the creation of the virtual directory.
Note The virtual directory inherits the configuration and security settings of the Web site in which you created it.
Publish Web content to the new folderFor more information about publishing a Web, click the following article numbers to view the articles in the Microsoft Knowledge Base:
198523 How to publish a FrontPage Web
205729 How to publish a FrontPage Web from a remote server to a local computer
194093 How to publish a FrontPage Web to the Internet, intranet
181127 How to publish your Web to a server without FrontPage Extensions
194092 How to publish your Web to a server without FrontPage Extensions
TroubleshootingFor more information about issues related to Microsoft Internet Information Services, click the following article numbers to view the articles in the Microsoft Knowledge Base:
297954 How to troubleshoot the Web server in Windows 2000
299970 How to use NTFS permissions to protect a Web Page running on IIS 4.0 or 5.0
216705 How to set permissions on a FrontPage Web on IIS
Article ID: 308135 - Last Review: 10/26/2013 08:20:00 - Revision: 4.0
Microsoft Windows 2000 Server, Microsoft Windows 2000 Advanced Server, Microsoft Windows 2000 Professional Edition
- kbnosurvey kbarchive kbhowto kbhowtomaster KB308135