Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Apache Webserver 2.2.17 and tcServer-6.0.20 and I want to dispatch requests from apache to tcserver.

I am using and I have the following in httpd.conf

LoadModule jk_module modules/

<IfModule jk_module>
   JkWorkersFile /x/y/apache2/conf/
   JkLogFile /x/y/apache2/logs/mod_jk.log
   JkLogLevel info
   JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
   JkMount /xyz/* ww

My file under /x/y/apache2/conf/ has

worker.list= ww

I'm new to tcServer (and tomcat) and I don't know what changes I have to make in server.xml on tcServer to get this to work with Apache.

Any help would be appreciated.

share|improve this question
up vote 1 down vote accepted

You are looking for the AJP connector block in server.xml - by default it's the one listed with port 8009 in it. Basically all you need to do is change that to port 12000 to match your worker.

Here's a complete example of many of things you can set if needed - right now you're running a very bare-bones mod_jk setup, there are Jk* options for Apache you can tune and

<!-- Define an AJP 1.3 Connector on port 8009 -->
<!-- -->
<Connector port="8009" protocol="AJP/1.3" allowTrace="false"
           emptySessionPath="false" enableLookups="false"
           maxPostSize="2097152" maxSavePostSize="4096" redirectPort="443"
           scheme="http" secure="false" URIEncoding="ISO-8859-1"
           useBodyEncodingForURI="false" xpoweredBy="false"
           useIPVHosts="false" address="" backlog="10"
           bufferSize="-1" connectionTimeout="60000"
           keepAliveTimeout="60000" maxThreads="200" packetSize="8192"
           request.secret="" request.useSecret="false"
           request.shutdownEnabled="false" tcpNoDelay="true"
           tomcatAuthentication="true" />
share|improve this answer
Thanks for this - that did the trick! – aos37 Feb 15 '11 at 10:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.