You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/04/02 19:48:00 UTC
DO NOT REPLY [Bug 7690] New: -
org.apache.coyote.tomcat4.CoyoteConnector logs all remote IP addresses as 127.0.0.1
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=7690>.
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=7690
org.apache.coyote.tomcat4.CoyoteConnector logs all remote IP addresses as 127.0.0.1
Summary: org.apache.coyote.tomcat4.CoyoteConnector logs all
remote IP addresses as 127.0.0.1
Product: Tomcat 4
Version: 4.0.4 Beta 2
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Connector:Coyote
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: jemiller@uchicago.edu
I found that the org.apache.coyote.tomcat4.CoyoteConnector connector logs all
remote IP addresses as 127.0.0.1. This behavior is different than that of
org.apache.catalina.connector.http.HttpConnector. i.e. if you swap out
org.apache.coyote.tomcat4.CoyoteConnector with
org.apache.catalina.connector.http.HttpConnector in the below config file, the
access log file will contain the client's true IP address. With the Coyote
connector it always prints out the localhost address.
<Server port="8005"
shutdown="SHUTDOWN"
debug="0">
<Service name="Tomcat-Standalone">
<Connector
className="org.apache.coyote.tomcat4.CoyoteConnector"
port="80"
minProcessors="5"
maxProcessors="75"
enableLookups="true"
redirectPort="443"
acceptCount="10"
debug="0"
connectionTimeout="20000"/>
<Connector
className="org.apache.coyote.tomcat4.CoyoteConnector"
port="443"
minProcessors="5"
maxProcessors="75"
enableLookups="true"
acceptCount="10"
debug="0"
scheme="https"
secure="true">
<Factory
className="org.apache.catalina.net.SSLServerSocketFactory"
clientAuth="false"
protocol="TLS"/>
</Connector>
<Engine name="Standalone"
defaultHost="localhost"
debug="0">
<Logger
className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log."
suffix=".txt"
timestamp="true"/>
<Host name="localhost"
debug="0"
appBase="webapps"
unpackWARs="true">
<Valve
className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
prefix="localhost_access_log."
suffix=".txt"
pattern="common"/>
<Logger
className="org.apache.catalina.logger.FileLogger"
directory="logs"
prefix="localhost_log."
suffix=".txt"
timestamp="true"/>
<Context path=""
docBase="ROOT"
debug="0"
reloadable="true"/>
</Host>
</Engine>
</Service>
</Server>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>