Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



Defining an Application on Sun ONE 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 application. Document roots are also ASP applications. You can use the NameTrans parameter in the obj.conf file to define an application. The following example defines an application called "/dosperros":

NameTrans fn="pfx2dir" from="/dosperros" dir="/opt/casp-net30/caspsamp/dosperros"

If you are using the Web server’s Administration tool, you can define an ASP application by adding an "additional document directory" in the Content Mgmt tab of the Class Manager.

If you have configured support for virtual servers, you can define ASP applications 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 icon Note This last method does not require a restart of the ASP Server and the Web server


ContentsPreviousNextIndex