image\cslogo3d1.gif

Enabling ASP for a Virtual Host

In order for the ASP Server to recognize and process an ASP application when a user requests an ASP page, you must first define the application. In a Web-hosting environment that makes use of virtual hosts, such as an Internet Service Provider (ISP), you define ASP applications in a different manner than is described in "Adding an ASP Application" in this chapter. This is because the ASP Server automatically recognizes ASP applications for each virtual host defined for the Web server. This topic describes how to use the Chili!Soft ASP Administration Console to selectively enable or disable ASP processing for each virtual host.

In this scenario, the application files must be located within the document root directory of the Web server or virtual host. In addition, the directory containing the global.asa file cannot be below the top-level directory of the Web server or virtual host document root. For more information about ASP applications and the global.asa file, see "Configuring ASP Applications" in this chapter.

Note

On Cobalt RaQ4 and RaQ XTR systems, you manage the Web server and configure virtual hosts from the Cobalt Administration Console, rather than from the Chili!Soft ASP Administration Console. For more information, see the Cobalt documentation.

Use the following procedure to selectively enable or disable ASP processing for a virtual host.

To enable or disable ASP processing for a virtual host

1.   If necessary, open the Administration Console by using the following URL:

http://[HOSTNAME]:[PORT]

where [HOSTNAME] is the hostname of your Web server and [PORT] is the port on which the Administration Console is running (5100 by default).

2.   On the Server Management page (the first page to appear when you open the Administration Console), click the Web Server tab.

The Web Server tab displays.

image\web_server.gif

3.   Click Virtual Hosts.

4.   Select the checkbox of each vrtual host for which you want to enable ASP processing, and deselect the checkbox of each virtual host for which you want to disable ASP processing.

5.   Click server management in the left navigation pane.

6.   Restart the ASP Server by clicking Restart.

Note

Restarting the ASP Server resets all Session and Application variables.

See also:

Managing the Web Server in this chapter

Starting and Stopping the Web Serverin this chapter

Copyright 2001 Sun Microsystems, Inc. All rights reserved. Legal Notice.