All Downloads are FREE. Search and download functionalities are using the official Maven repository.

en.help.task-protocolhttpedit.html Maven / Gradle / Ivy

There is a newer version: 3.2-b03
Show newest version



To Edit HTTP Settings for a Protocol

  1. In the navigation tree, expand the Configuration node.
  2. Under the Configuration node, expand the Network Config node.
  3. Under the Network Config node, select the Protocols node.

    The Protocols page opens.

  4. On the Protocols page, click the name of the protocol that you are editing.

    The Edit Protocol page opens.

  5. On the Edit Protocol page, click the HTTP tab.

    The HTTP page opens.

  6. In the Server Name field, type 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.

  7. From the Default Virtual Server drop-down list, select the virtual server to be associated with the protocol.

    Use the Virtual Servers page to define virtual servers.

  8. In the Redirect Port field, type the port value to be used to redirect 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.

  9. In the Max Connections field, type the maximum number of persistent connections to be maintained in Keep-Alive mode.

    The Keep-Alive subsystem periodically polls idle connections.

  10. In the Timeout field, type the maximum time in seconds that a connection can be deemed as 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.

  11. Select the Upload Timeout Enabled checkbox to cause the connection for a servlet that reads bytes slowly to be 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.

  12. In the Connection Upload Timeout field, type the timeout for uploads, in milliseconds.

    This field is applicable only if the Upload Timeout Disabled checkbox is selected. The default value is 300000 milliseconds.

  13. In the Request Timeout field, type 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.

  14. In the Send Buffer Size field, type the size in bytes of the send buffer.

    The default value is 8192 bytes.

  15. In the Header Buffer Length field, type the size in bytes of the buffer used by the request processing threads to read the request data.

    The default value is 8192 bytes.

  16. In the Max Post Size field, type the maximum size in bytes of POST actions.

    The default value is 2097152 bytes.

  17. In the URI Encoding field, type 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.

  18. In the Version field, type the version of the HTTP protocol used.

    The default value is HTTP/1.1.

  19. From the Compression drop-down list, select the use of HTTP/1.1 GZIP compression to save server bandwidth.

    Available choices are:

    on

    Compresses data.

    off

    Disables compression.

    force

    Forces data compression in all cases.

    The default value is off.

  20. In the Compressible Mime Type field, type a comma-separated list of MIME types for which HTTP compression is used.

    The default value is text/html,text/xml,text/plain.

  21. In the Compression Minimum Size field, type 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.

  22. In the No-Compression User Agents field, type 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.

  23. In the Restricted User Agents field, type 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.

  24. In the Default Response Type field, type 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.

  25. In the Forced Response Type field, type 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.

  26. In the Adapter field, type the class name of the static resources adapter.

    The default value is com.sun.grizzly.tcp.StaticResourcesAdapter.

  27. Select the Comet Support Enabled checkbox to enable Comet support for the protocol.

    This option is disabled by default.

  28. Select the DNS Lookup Enabled checkbox to enable Domain Name System (DNS) lookup.

    This option is disabled by default.

  29. Select the RCM Support Enabled checkbox to enable Resource Configuration Management (RCM).

    This option is disabled by default.

  30. Select the Trace Enabled checkbox to enable the TRACE operation.

    If this option is disabled, the GlassFish Server is less susceptible to cross-site scripting attacks. This option is enabled by default.

  31. Select the Auth Pass Through checkbox to indicate that the network listener that uses this protocol receives traffic from an SSL-terminating proxy server.

    This option is disabled by default.

  32. Select the Chunking Enabled checkbox to enable HTTP response chunking.

    This option is enabled by default.

  33. Select the XPowered By Enabled checkbox to tell the GlassFish Server to use X-Powered-By headers according to the Java Servlet 3.0 and Java Server Pages 2.0 specifications.

    This option is enabled by default.

  34. Click Save.

    Tip - To return to the default settings, click the Load Defaults button, then click Save.


See Also
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices




© 2015 - 2024 Weber Informatics LLC | Privacy Policy