Chapter 10: HTTP Connectors changed, the redirectPort attribute

Chapter 10: HTTP Connectors changed, the redirectPort attribute for all the non-SSL Connectors must be changed to that port number, too. As mentioned, the non-SSL Connectors redirect users to this port if they try to access pages with a security constraint that specifies that SSL is required. For more on installing an SSL certificate that you have purchased from a Certificate Authority, and/ or creating your own self-signed certificate for testing, see the section Encryption with SSL in Chapter 14 . A different set of SSL configuration attributes is required when OpenSSLis used with the native code APR Connector. Please see the later section on configuration for the native APR connector. Note that when you startup Tomcat and examine the output of the console, you are very likely to see the following message: INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: c:jdk … This message appears because a listener is enabled by default to look for the APR support libraries; this message indicates that the APR libraries are not found. You need these libraries only if you are configuring the APR connector. See the Native APR Connector section in this chapter for more details. The Advanced NIO Connector The NIO Connector is an HTTP Connector written in Java, but takes advantage of the NIO libraries of Java 5 to provide the following features, which are above and beyond those provided by the standard HTTP Connector: . Non-blocking operations . Support for Comet This Connector has the same configuration attributes as the standard HTTP Connector. It is activated when the protocol attribute is set to org.apache.coyote.http11.Http11NioProtocol. For example, the following element configures an instance of an NIO Connector:

For high quality website hosting services please check cheap web hosting website.

Comments are closed.