tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: No access log for AJP traffic
Date Wed, 06 Apr 2011 19:24:38 GMT
Chris Dumoulin wrote:
> I'm using tomcat 7.0.11 with the following Connector and Host elements in server.xml:
> <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
> <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
>     <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="localhost_access_log." resolveHosts="false"
>     <Context docBase="app1" path="/app1" reloadable="true" source="org.eclipse.jst.jee.server:app1"/>
>     <Context docBase="app2" path="/app2" reloadable="true" source="org.eclipse.jst.j2ee.server:app2"/>
> </Host>
> In the access log I'm seeing the HTTP traffic on port 8080 but not the AJP traffic on
port 8009. I've googled around and I don't see any mention of specific Valve settings for
> Any ideas?

And are you expecting traffic on the AJP Connector ?
For traffic to show up there, some client would need to connect to your server on port 
8009.  Is there anything that connects to that port ?

If not, then there is nothing to worry about, and you could even comment-out that 
<Connector>, since it will never be used.
Like :
<!-- Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/ -->

The AJP Connector is used in scenarios where there is another webserver used as a 
front-end to Tomcat, and this other webserver, to pass requests to Tomcat, uses the AJP 
protocol.  For example, a configuration like this one :

browser <--> Apache httpd server <-----> Tomcat
                + mod_jk module
             OR + mod_proxy_ajp module


browser <--> IIS webserver <-----> Tomcat
          + isapi_redirect module

If you do not use such a configuration, or you do not understand what this is all about, 
then you don't need the AJP <Connector> in Tomcat.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message