Sun Java System Web Server 6.1 SP12 Programmer's Guide to Web Applications

Enabling and Disabling Web Applications

Sun Java System Web Server 6.1 allows you to enable or disable a web application. You can do so in either of the following ways, as discussed in this section:

Using the Administration Interface

ProcedureTo enable or disable a deployed web application using the administrator interface

  1. Access the Administration Server, select the server instance, and click Manage.

  2. Click the Virtual Server Class tab.

  3. Select the virtual server class that contains the virtual server instance in which the web application is deployed, and click Manage.

  4. Select the virtual server in which the web application is deployed, and click Manage.

  5. Click the Web Applications tab, and then click the Edit Web Applications link.

  6. From the Action drop-down list, select Enable or Disable to enable or disable a specific web application.

  7. Click OK.

Editing the server.xml File

By default, an application is automatically enabled with the value set to true in the server-id/config/server.xml file. You can disable the application by setting the value to false.

Example:

<WEBAPP uri="/catalog" path="/export/apps/catalog" enabled="false">

For more information, see the Sun Java System Web Server 6.1 SP12 Administrator’s Configuration File Reference.