Home > Articles > Programming > Windows Programming

  • Print
  • + Share This
From the author of

Configuring Internet Information Server 5.0

In order to configure IIS 5.0 for ASP.NET, you have to start by creating a virtual directory; to do this, follow these steps (note that we will use IIS 5.0 on Windows 2000 to host all the examples in this book):

  1. Click the Start button and choose Programs, Administrative Tools, Internet Services Manager.

  2. Click the Web server name. On the right side of the screen, Default Web Site should have a status of "Running." If this is not the case, highlight Default Web Site by clicking it and then click the Play icon on the toolbar at the top.

  3. Clicking the plus sign (+) next to the Web server name will display a list of the available Web sites on this server, as shown in Figure 1.1.

  4. Clicking the plus sign (+) next to Default Web Site will display a list of the virtual directories for this Web site, as shown in Figure 1.2. Virtual directories are simply logical directories that can contain physical directories.

  5. Figure 1.1 A list of virtual directories is displayed below Default Web Site.

  6. Right-click Default Web Site and then select New, Virtual Directory (a virtual directory is a link to another physical directory that resides outside of the Web site tree).

  7. Figure 1.2 Creating a virtual directory for the default Web site.

  8. Figure 1.3 shows the screen that appears. From this screen, enter the alias that you wish to use to gain access to this directory (for example, ASP_Net_Examples) and then click Next.

  9. Figure 1.3 The Virtual Directory Alias screen.

  10. In the next screen, shown in Figure 1.4, browse to the location where you want your virtual directory to be and click Next. If no directory has been created for your ASP.NET pages, create one now, calling it C:\Inetpub\wwwroot\ASP_Net_Examples, for example.

  11. Figure 1.4 The Web Site Content Directory screen.

  12. In the next screen, shown in Figure 1.5, select the appropriate access permissions for this directory and click Next. The default access permissions are Read and Run Script. These permissions are acceptable for all ASP.NET applications that will be hosted on this server.

  13. Figure 1.5 The Access Permissions screen.

  14. In the final screen, shown in Figure 1.6, click the Finish button, and the virtual directory will be completed.

  15. Figure 1.6 Congratulations! You have finished creating a virtual directory.

The new virtual directory will now appear as a node under the Default Web Site tree. Hour 2, "Presenting Internet Information Services," will provide a more detailed overview of the features and benefits of Internet Information Services (IIS) on Windows 2000.

  • + Share This
  • 🔖 Save To Your Account