Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems


Enabling ASP for a Virtual Host

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 with 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 Sun Chili!Soft ASP Administration Console to selectively enable or disable ASP processing for each virtual host.

In this scenario, the ASP application files must be located in 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.


On Cobalt systems, the Cobalt Administration Console is used to manage the Web server and configure virtual hosts.

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.   Open the Administration Console by using the following URL:


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 display when you open the Administration Console), click the Web Server tab.

The Web Server tab displays.


3.   Click Virtual Hosts.

4.   Select or deselect the check box of each virtual host for which you want to enable or disable ASP processing.

5.   Click server management in the left navigation pane.

6.   Restart the ASP Server by clicking Restart.


Restarting the ASP Server resets all Session and Application variables.

See also:

Managing the Web Server in this chapter

Starting and Stopping the Web Server in this chapter

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