Product Home Page | Developer Site | Version | |
For the purpose of defining Application and Session scope, the ASP Server considers all *.asp files located in a virtual directory to be part of one ASP application. Document roots are also ASP applications. You can use the Alias parameter in httpd.conf to define an ASP application. The following example defines an application called "/caspsamp"
:
Alias /caspsamp "/[C-ASP_INSTALL_DIR]/samples"
where [C-ASP_INSTALL_DIR] is the directory in which Sun ONE Active Server Pages is installed. An ASP application can also be defined by adding an entry to the [applications]
section of casp.cnfg. This applies to the "real host" only.
If you have configured support for virtual hosts, you can define ASP applications on Apache Web Server as follows:
By adding an alias to the Web server configuration file (only if use_aliases=yes
in the [applications]
section of casp.cnfg.) If the alias appears outside a <virtualhost> ... </virtualhost>
block, it applies to the "real host" only. If the alias appears inside a <virtualhost> ... </virtualhost>
block, it applies to the virtual host.
By adding an entry to the ASP User Configuration file. The name of this file is defined in the [applications]
section of the casp.cnfg file. Sun ONE ASP looks for this file in the document root directory of each host, "real" or virtual. "Real host" entries apply to the "real host" only.
Note | This method does not require a restart of both the ASP Server and the Web server. The other methods listed here do require restarts. |
By adding an entry to the services.cnf file generated by FrontPage. This file is located in the /_vti_pvt subdirectory of the root directory of each host, "real" or virtual. "Real host" entries apply to the "real host" only.
Copyright © 2003 Sun Microsystems, Inc. All rights reserved.