Setting up a Directory for Our Examples

When the PWS is installed, it adds a directory called

Webshare
(on NT, the directory is called
InetPub
). PWS then adds a few subdirectories underneath. We want to place all of our ASP pages we write in the subdirectory
\Chapter13
. We'll also create a Virtual directory within PWS that will refer to our physical
Chapter13
directory. All of the cool ASP pages you write will be in the (physical)
Chapter13
directory, and PWS will be able to find them.

Try It Out - Creating a Virtual Directory

1.  Click on View | Advanced from the main menu on the Web server:

2.  When you have <Home> highlighted, click Add.

3.  In the Add Directory window, use the Browse button to find your

BegDB\Chapter13
directory, and add it. In the Alias box, enter Ch13:

4.  Click OK.

Now, we can use the Ch13 alias to get to the files we'll store in the

Chapter13
directory. To do this, we'll type in the URL in our browser in this form:

http://my_server_name/Ch13/filename

Note that PWS uses the alias

Ch13
to refer to the physical directory
[drive letter]:\BegDB\Chapter13

So all the ASP pages you write should be in

\Chapter13
.

When you run an ASP page that your write, you must type its URL in the browser's address window. You can't load the file into the browser because it won't execute the ASP features unless you access it via PWS.

© 1998 by Wrox Press. All rights reserved.