Chapter 10: HTTP Connectors selected. The APR connector
Chapter 10: HTTP Connectors selected. The APR connector is also used if the APR library is available via either the PATHvariable in Windows or LD_LIBRARY_PATHvariable in Linux/*nix. . proxyName: The proxyNameattribute (along with the proxyPortattribute) is used when Tomcat is run behind a proxy server. It specifies the server name to be returned for request .getServerName() calls. See the section Running Tomcat Behind a Proxy Server later in this chapter for more information. . proxyPort: As mentioned, the proxyPort attribute is used in proxy configurations. It specifies the port number to be returned for request.getServerPort()calls. See the section Running Tomcat Behind a Proxy Server later in this chapter for more information. . redirectPort: If the Connector supports only non-SSL requests and a user request is sent to this Connector for an SSL resource, Catalina will redirect that request to the redirectPortport number. The default Tomcat configuration specifies 8443 as the redirect port, as shown in the sample configuration presented earlier. If this is omitted, it defaults to 443. . restrictedUserAgents: This is a comma-separated list that matches the HTTP UserAgent value of Web browsers that have a broken support for HTTP/1.1 keep-alive behavior. Regular expressions can be used here. . scheme: The scheme attribute is set to the name of the protocol. The value specified in scheme is returned by the request.getScheme()method call. The default value is http. For an SSL Connector, this would be set to https. . secure: This attribute is set to true for an SSL Connector. This value is returned by the request.getScheme()method calls. The default value is false. . server: Specifies the server header when sending the HTTP response. If this attribute is not set, the Server string output in the HTTP header that identifies the Web server defaults to Apache-Coyote/1.1. Some security experts don t like this, as it broadcasts to the world information about the Web server software. If there are any known security exploits of this Web server, they then can be used by malicious users. Setting this to an empty string suppresses the printing of the Serverstring. . socketBuffer: This specifies the size, in bytes, of the buffer to be used for socket output buffering. Use of a socket buffer helps to improve performance. By default, a buffer of size 9,000 bytes is used, and setting socketBufferto -1 turns buffering off. . tcpNoDelay: When this attribute is set to true, it enables the TCP_NO_DELAYnetwork socket option. This improves performance, as explained in the section Performance Tuning, later in this chapter. The default value is true. . threadPriority: Specifies the Java thread priority for request handling threads created in the Java VM. The default value is java.lang.Thread#NORM_PRIORITY. . URIEncoding: Specifies the character encoding used to decode URI bytes. It defaults to ISO-8859-1. . useBodyEncodingForURI: If set to true, this attribute causes the URI encoding specified in the contentTypeto be used for encoding, rather than the URIEncodingattribute. This defaults to false. . useIPVHosts: Default is false. If set to true, this attribute causes the server to examine the incoming request IP address to direct the request to the corresponding virtual host.
For high quality jboss hosting services please check jboss web hosting website.