Microsoft KB Archive/301392

= How to create a virtual folder (subweb) in IIS 4.0 or in IIS 5.0 =

Article ID: 301392

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Internet Information Server 4.0
 * Microsoft Internet Information Services 5.0

-



This article was previously published under Q301392



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx





SUMMARY
This step-by-step article describes how to use Internet Services Manager to create a new virtual Web site that has IP address.

Requirements
The following list outlines the recommended hardware, software, network infrastructure, and service packs that you will need:
 * A Windows Web server that is running either Internet Information Server (IIS) 4.0 or IIS 5.0.
 * A root Web site (in this example, the default Web site).
 * Administrative rights on the server computer.

Create the content folder
Note If you have already created a content folder, skip this section and continue to the &quot;Create the virtual Web site&quot; section.
 * 1) Right-click Start and then click Explore to open Windows Explorer.
 * 2) Select the drive in which you want to put the content folder for the new Web site.
 * 3) Click File, point to New, and then click Folder.
 * 4) When the folder is created, the title area will be highlighted. Type the name that you want to give the folder (such as Webcontent). Press ENTER.
 * 5) Click File and then click Close to close Windows Explorer.

Create the virtual Web site

 * For IIS 4.0:
 * Click Start, point to Programs, select Windows NT 4.0 Option Pack, point to Microsoft Internet Information Services, and then click Internet Services Manager.

Note Do not click HTML.
 * In the left pane, right-click Default Web Site, point to New, and then click Virtual Directory.
 * In the first screen of the Virtual Directory Creation Wizard, type a name for the site (such as &quot;Mywebsite&quot;), and then click Next.
 * In the second screen, click Browse. Browse the content folder that you created in section 2 (in this example, it is &quot;Webcontent&quot;). Click Next.
 * In the third screen, select Read and Run scripts (such as ASP). Make sure that the other check boxes are cleared. Click Finish to complete the wizard.
 * Right-click the new virtual folder, and then click Properties.
 * Click Virtual Directory and make sure that the Web site name is listed in the Application Name text box under Application Settings. If the Web site is not listed, click Create.
 * Close the Properties dialog box, and close IIS.
 * FOR IIS 5.0:
 * Click Start, point to Programs, select Administrative Tools, and then click Internet Services Manager.
 * In the left pane, right-click Default Web Site, point to New, and then click Virtual Directory.
 * In the first screen of the Virtual Directory Creation Wizard, type a name for the site (such as &quot;Mywebsite&quot;), and then click Next.
 * In the second screen, click Browse. Browse the content folder that you created in section 2 (in this example, it is Webcontent). Click Next.
 * In the third screen, select Read and Run scripts (such as ASP). Make sure that the other check boxes are cleared. Click Finish to complete the wizard.
 * Right-click the new virtual folder, and then click Properties.
 * Click Virtual Directory and make sure that the Web site name is listed in the Application Name text box under Application Settings. If the Web site name is not listed, click Create.
 * Close the Properties dialog box and close IIS.

Keywords: kbhowto kbhowtomaster KB301392

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.