tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15258] New: - ajp13 socket listens on localhost by default
Date Wed, 11 Dec 2002 01:21:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15258>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15258

ajp13 socket listens on localhost by default

           Summary: ajp13 socket listens on localhost by default
           Product: Tomcat 4
           Version: 4.1.16
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Connector:Coyote JK 2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: bernie@develer.com


The 1.28 revision of 
jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ChannelSocket.java 
made by user "mturk" changes the behavior of a default Tomcat installation to listen 
on localhost:8009 instead of *:8009. 
 
  +        if (getAddress() == null) 
  +            setAddress("localhost"); 
 
It took us several hours to track down. 
 
This change is UNDOCUMENTED and prevents configurations where the httpd server 
and tomcat reside on different hosts, because there's no legal way to listen on any 
address. Additionally, all the modified source lines contain DOS-style EOL characters. 
 
 I strongly suggest reverting this patch before releasing 4.1.16. As a temporary 
workaround, you can have the connector listen on any address by adding 
address="0.0.0.0" in the configuration: 
 
  <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" 
                        address="0.0.0.0" port="8009" minProcessors="5" 
maxProcessors="75" 
                        enableLookups="false" redirectPort="8443" 
                        acceptCount="10" debug="0" connectionTimeout="0" 
                        useURIValidationHack="false" 
                        protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message