ONE Active Server Pages Product Home Page Developer Site Version


Defining an Application on Apache Web Server

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: