Getting Started With Aspnet

There are several options you can choose when specifying a home directory. Follow steps 1 to 5 on page 8 and then select the option you want to use. Use the table below to determine which option is best for setting the location of the home directory.

OPTION

DESCRIPTION

A directory located on this computer

Use this option for specifying a directory located on the Web server as the home directory. This is the most common choice.

A share located on another computer

Use this option if you want to specify a share directory as the home directory. You can specify the user that you want to connect as using the Connect As button.

A redirection to a URL

Use this option if you want to have users redirected to another URL when they are trying to access any part of your site.

—O Click the directory you want to set as your new home directory.

—0 Click OK to set the new home directory and to close the dialog box.

—Close the Internet Information Services window.

—O Click the directory you want to set as your new home directory.

—0 Click OK to set the new home directory and to close the dialog box.

■ The new home directory appears in the Local Path.

LE Click OK to close the properties dialog box.

—Close the Internet Information Services window.

After you have installed Internet Information Server (IIS), you can configure your Web sites. Each Web site will have its own home directory. For example, the default Web site that is created when installing IIS will have a home directory located at C:\Inetpub\wwwroot. All of the subdirectories of this directory will be accessible to your users. For example, suppose that your site is available at www.mylifetimegoals.com. You add a subdirectory under your default directory (for example, C:\Inetpub\wwwroot\test). After that subdirectory is added, you access the files in that directory using www.mylifetimegoals.com/test as your URL.

Virtual directories give you the ability to access directories that are not necessarily a subdirectory under your home directory. For example, you can create a virtual directory with the alias virtual and map it to any physical directory (for example, C:\virtual). You can then access the files in virtual by using the address www.mylifetimegoals. com/virtual.

Having virtual directories is helpful if you have files located on another server. You may have files on one server that are shared by sites that are distributed across multiple Web servers. This sharing can be accomplished by accessing this shared location through a virtual directory.

ADD A VIRTUAL DIRECTORY IN IIS

Internet Information Services

I Internet Information S er " devserver

P Default FTP Site

^Default Web Site |

Scripts ]"Cj _vti_bin

PBServer ]-Ci PB S Data l-Tfr Piinters

]-Qâ CrystalReportWebFormVi books l-% Default SMTP Virtual Server 1% Default NNTP Virtual Server

I Path

H^AUU

Scripts

Cà_vti_bin Lj PBServer C^PBSData

Piinters LiCrystalReportWel ^books one wen serra roi iriiana ana irrcrana wen s

□ In the Control Panel, double-click Administrative

Tools to open the Administrative Tools window.

Double-click Internet Services Manager to open the Internet Information Services window.

c:\piogram tiles\common tilesVsy c:\inelpub\scnpts C:\Program Files^Common FilesV. C:\Program Files^Phone Book Si C:\Program Files^Phone Book Si C AWIN N T Wb\printers C:\Program FilesSMicrosoft Visuc C:\books

0 click EE] to expand the list of Web sites on the Web server (EE] changes to PI).

-Q Click the Web site in which you want to add the virtual directory.

L-0 Click Action O New O Virtual Directory.

Virtual directories can also be set using Windows Explorer. Select the folder you want to set up as a virtual directory in Windows Explorer. Click the File Menu, then choose Properties. Then click the Web Sharing tab and select the Web site you want to make the virtual directory with. Click the Share This Folder option. In the Edit Alias dialog box, specify an alias and set the appropriate access and application permissions. Click OK when you finish. Then click OK again to close out the Properties dialog box.

You can also remove a virtual directory you no longer need from IIS. Perform steps 1 through 3 to open the Internet Information Services window, and then select the virtual directory you want to remove. Click the Delete button and then click Yes in the dialog box that appears. Removing a virtual directory does not remove the actual directory and its contents from the computer.

0 Click Next to continue. ^H Type an alias for the virtual directory.

0 Click Next to continue.

■ The Virtual Directory Creation Wizard appears.

0 Click Next to continue. ^H Type an alias for the virtual directory.

0 Click Next to continue.

CONTINUED

After you specify the path to the directory that you want to set up as a virtual directory, you can set access permissions for the directory. You have a choice of five settings to choose from or combine.

The Read permission enables users to access Web pages. Select this setting for a virtual directory containing contents that you want to make available for users to view. The Read permission is turned on by default.

The Run scripts permission enables scripts to run in the directory. Select this setting for virtual directories containing ASP pages. The Run scripts permission is turned on by default.

The Write permission enables the creation of files in the directory. Select this setting for virtual directories that have ASP pages that create files on the server side.

The Browse permission enables users to view the list of all the subdirectories and pages that the virtual directory contains. When a user specifies a URL that contains a directory and does not specify the name of the page, then a list of files and subdirectories appears. If there is a default document in that directory, it will appear instead of the directory listing.

ADD A VIRTUAL DIRECTORY IN IIS (CONTINUED)

ADD A VIRTUAL DIRECTORY IN IIS (CONTINUED)

• Type the path to the directory in which you want to create a virtual directory.

± Click Next to continue.

• Type the path to the directory in which you want to create a virtual directory.

| Click □ next to the appropriate access permissions O changes to 0).

± Click Next to continue.

Was this article helpful?

0 0

Post a comment