Product Home Page | Developer Site | Version | |
This section describes the options that are available for defining Sun ONE Active Server Pages applications on UNIX-based systems.
Caution | Take great care when making the changes described in this section. Changes you make could require a complete reinstall of Sun ONE Active Server Pages and could void your eligibility for customer support. Back up your data before making any changes. |
Most of the configuration settings described in this section are easily accessed from the Sun ONE ASP Administration Console. It is strongly recommended that you use the Administration Console whenever possible, as described in Using the Administration Console. |
With Sun ONE ASP running on a UNIX system with any supported Web server, you can define an ASP application by using the following methods:
Using the Sun ONE ASP Administration Console. For more information, see Enabling ASP for a Virtual Host.
Adding an entry to the [applications]
section of the Sun ONE ASP configuration file, casp.cnfg. For more information, see Editing the Sun ONE ASP Configuration File.
Adding an alias to the Web server configuration file (only if use_aliases=yes
in the [applications]
section of casp.cnfg).
Adding an entry to the services.cnf file generated by FrontPage, located in the /_vti_pvt subdirectory of the Web server document root directory.
The ASP Server dynamically recognizes ASP applications that are defined in the Sun ONE ASP User Configuration file or the FrontPage services.cnf file. These applications must be defined by using the application name (for example, "/appname"
). An application named /customers
must correspond to a real top-level directory named "customers" in the Web server document root directory. The files that make up this application must all exist within the Web server document root directory. The global.asa file, if present, must be located in the top-level directory.
The ASP Server does not dynamically recognize ASP applications that are defined in the Sun ONE ASP configuration file, casp.cnfg, or that are defined by using an alias in the Web server configuration files. The ASP Server must be restarted to recognize them. ASP applications defined in the casp.cnfg file or by creating an alias in the Web server configuration files can include files outside of the Web server document root directory. The global.asa file, if present, must be located in the top-level directory referenced by the ASP application.
If there are naming conflicts between ASP applications that are defined in different directories, the ASP Server honors application definitions in the following order:
Note |
Sun ONE ASP for UNIX- and Linux-based systems dynamically recognizes ASP applications created by FrontPage, but only if the application is not in a nested sub-Web. If the application (and its associated global.asa file) is located in a directory that is not a top-level directory of the Web server document root directory, you must define this application using either the [applications] section of Sun ONE ASP casp.cnfg file, or by adding an alias to your Web server configuration. For more information, see Editing the Sun ONE ASP Configuration File.
|
In this section:
Defining an Application on Sun ONE Web Server
Defining an Application on Apache Web Server
Copyright © 2003 Sun Microsystems, Inc. All rights reserved.