ONE Active Server Pages Product Home Page Developer Site Version


Adding ASP Applications

For the ASP Server to process an ASP application when a user requests an ASP page, the ASP application must be defined on the ASP Server. The easiest way to do this is by using the Sun ONE Active Server Pages Administration Console. From the console, you add an application by giving the application a name, and by specifying the physical directory containing the application files and the global.asa file. When you do this, a virtual directory for the application is created on the Web server and associated with the physical directory containing the application files.

To define an application for a virtual host (referred to as virtual servers on Sun ONE Web Server), do not use the following procedure. Instead, use the instructions in Enabling ASP for a Virtual Host. If the Web developers you support use FrontPage, see the description of FrontPage applications in Using the FrontPage Services File.

Note icon Note On Windows NT and Windows 2000, ASP applications are defined by adding aliases or virtual directories to the Web server. Sun ONE Active Server Pages treats each alias or virtual directory as an ASP application. With Sun ONE Web Server, ASP applications are defined by adding an "additional document directory" using the Web server’s Administration tool. With the Apache Web Server, ASP applications are defined by adding an alias to the httpd.conf file.

To define an ASP application that will not be served by a virtual host or virtual server, use the following procedure.

To add an ASP application

  1. Open the Administration Console (see Accessing the Administration Console).

  2. On the ASP Server tab of the Server Management page, click ASP Applications.

  3. The Applications page displays, showing a list of currently configured ASP applications.

  4. Click Add a new application.

  5. The Add application page displays.

  6. In the Application name box, type the name of the virtual directory to create and enable as an ASP application.

  7. In the Directory box, type the absolute path name of the application directory. The application directory is the top-level physical directory that contains the application ASP files, the global.asa file (if one is being used for this application), and any application subdirectories.

  8. Click Save, or click Cancel to cancel any entries.

  9. The Applications page displays.

  10. In the left navigation pane, click Server Management.

  11. The Server Management page displays.

  12. To put your changes into effect, restart the ASP Server by clicking Restart.

  13. Note icon Note Restarting the ASP Server resets all Session and Application variables.

See also:

Defining ASP Applications (ASP Server)

Configuring ASP Applications

Editing ASP Application Settings

Removing ASP Applications