Use the HTTP page to modify HTTP settings for a network protocol.
The HTTP page contains the following options.
Button to restore the default values of all the settings.
The name of the protocol. The Protocol Name field is a read-only field. You can only specify the name when you create a new protocol.
The host name to be used in the URLs the server sends to the client. This name is the alias name if your server uses an alias. If your server does not use an alias, leave this field blank.
The virtual server to be associated with the protocol. Use the Virtual Servers page to define virtual servers.
Port value that redirects a request to another port. The GlassFish Server automatically redirects the request if these two conditions exist:
This protocol is supporting non-SSL requests.
A request is received for which a matching security constraint requires SSL transport.
If a redirect port is not specified, the GlassFish Server uses the port number specified in the original request.
The maximum number of persistent connections to be maintained in Keep-Alive mode. The Keep-Alive subsystem periodically polls idle connections. The default value is 256.
The maximum time in seconds that a connection can be considered idle and kept in the keep-alive state. A value of 0 or less means that keep-alive connections are kept open indefinitely. The default value is 30 seconds.
If this option is selected, the connection for a servlet that reads bytes slowly is closed after the Connection Upload Timeout limit is reached. If this option is disabled, servlet connections do not time out. This option is disabled by default.
The timeout for uploads, in milliseconds. This field is applicable only if the Upload Timeout Enabled checkbox is selected. The default value is 300000 milliseconds.
The number of seconds before a request times out. If the request is not processed before the timeout value is reached, the request is ignored. The default value is 30 seconds.
The size in bytes of the send buffer. The default value is 8192 bytes.
The size in bytes of the buffer used by the request processing threads to read the request data. The default value is 8192 bytes.
The maximum size in bytes of POST actions. The default value is 2097152 bytes.
The name of the character set used to decode the request URIs received. The value must be a valid IANA character set name. The default value is UTF-8.
The version of the HTTP protocol used. The default value is HTTP/1.1.
Specifies the use of HTTP/1.1 GZIP compression to save server bandwidth. Available choices are:
Compresses data.
Disables compression.
Forces data compression in all cases.
The default value is off.
A comma-separated list of MIME types for which HTTP compression is used. The default value is text/html,text/xml,text/plain.
The minimum size of a file when compression is applied. This value must be set if Compression is set to on or force. The default value is 2048 bytes.
A comma-separated list of regular expressions matching user agents of HTTP clients for which compression should not be used. By default, this value is an empty string.
A list of restricted user agents on which HTTP compression is applied. If no user agents are specified, HTTP compression is applied to all user agents. By default, no user agents are specified.
A string that specifies the default response type. The format is a semicolon-delimited string consisting of the content-type, encoding, language, and charset. The default value is text/html; charset=iso-8859-1.
A string that specifies the request type used if no MIME mapping is available that matches the file extension. The format is a semicolon-delimited string consisting of the content-type, encoding, language, and charset. The default value is text/html; charset=iso-8859-1.
The class name of the static resources adapter. The default value is com.sun.grizzly.tcp.StaticResourcesAdapter.
If this option is selected, Comet support is enabled for the protocol. This option is disabled by default.
If this option is selected, Domain Name System (DNS) lookup is enabled. This option is disabled by default.
If this option is selected, Resource Configuration Management (RCM) is enabled. This option is disabled by default.
If this option is selected, the TRACE operation is enabled. If this option is disabled, the GlassFish Server is less susceptible to cross-site scripting attacks. This option is enabled by default.
If this option is selected, it indicates that the network listener that uses this protocol receives traffic from an SSL-terminating proxy server. This option is disabled by default.
If this option is selected, HTTP response chunking is enabled. This option is enabled by default.
If this option is selected, the GlassFish Server uses X-Powered-By headers according to the Java Servlet 3.0 and Java Server Pages 2.0 specifications. This option is enabled by default.