Sun GlassFish Enterprise Server v3 Administration Guide

Administering HTTP Configurations

Each HTTP listener has an HTTP configuration, which is created either by using the create-http subcommand or by using the built-in configurations that are applied when you follow the instructions in To Create an HTTP Network Listener.

The following topics are addressed here:

ProcedureTo Create an HTTP Configuration

Use the create-http subcommand in remote mode to create a set of HTTP parameters for a protocol. This set of parameters configures one or more network listeners,

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. Create an HTTP configuration by using the create-http(1) subcommand.

    Information about options and properties for the subcommand are included in this help page.


Example 16–4 Creating an HTTP Configuration

This example creates an HTTP parameter set for the protocol named http-1.


asadmin> create-http --timeout-seconds 60 --default-virtual-server server http-1
Command create-http executed successfully.

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help create-http at the command line.

ProcedureTo Delete an HTTP Configuration

Use the delete-http subcommand in remote mode to remove HTTP parameters from a protocol.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. Delete the HTTP parameters from a protocol by using the delete-http(1) subcommand.


Example 16–5 Deleting an HTTP Configuration

This example deletes the HTTP parameter set from a protocol named http-1.


asadmin> delete-http http-1
Command delete-http executed successfully.

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help delete-http at the command line.