Configuring the HTTP1.1 Connector

Configuring the HTTP/1.1 Connector

Listing 9-1 shows the default Coyote HTTP/1.1 connector configuration (from CATALINA_HOME/conf/server.xml).

Listing 9-1: The Default HTTP/1.1 Connector

image from book
 <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->  <Connector port="8080"             maxThreads="150"             minSpareThreads="25"             maxSpareThreads="75"             enableLookups="false"             redirectPort="8443"             acceptCount="100"             debug="0"             connectionTimeout="20000"             disableUploadTimeout="true" /> 
image from book

As with many components in Tomcat’s configuration, some of these attributes are common to all connectors and some are unique to the HTTP connector. Chapter 4 shows how to deal with all these attributes. However, in this case the attributes specify that this service should listen to port 8080 for HTTP requests, set thread-handling information, disallow DNS lookups, and assign a port to which SSL requests should be sent (8443), among other things.



Pro Jakarta Tomcat 5
Pro Apache Tomcat 5/5.5 (Experts Voice in Java)
ISBN: 1590593316
EAN: 2147483647
Year: 2004
Pages: 94

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net