tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Apache2, Tomcat, and connectors
Date Tue, 12 Sep 2006 06:42:35 GMT
I have separate web and app servers.  They are both behind a firewall
and I only have port 80 access to the web server and ssh to each of the
servers.  I'm attempting to set up a development environment where we
can eventually add more app servers and add load balancing to provide an
environment where we can debug load balancing issues.

I'd like to set up several developers with their own development
environments (tomcat, and their apps) on the app server.  I've tried
reverse proxy, mod_jk, and mod_proxy_ajp without complete success.

I just can't believe I'm the first to try this, but I've searched
everywhere I can imagine looking for sample configurations and haven't
found the answer.  I cannot figure out how to do this without virtual
hosts, and remember I only have one domain name and one port to the web

So, which is the current 'best practice' among reverse proxy, mod_jk,
and mod_proxy_ajp?  Can I get multiple Tomcats running on the app server
with the same Apache2 connecting via one of the connectors mentioned

Any guidance is appreciated.

Here's the applicable part of my config files:


ProxyRequests Off
<Proxy *>
  Order deny,allow
  Allow from all
JkLogFile        /var/log/httpd.mod_jk.log
JkLogLevel       debug
JkLogLevel       info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions        +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat     "%b %H %m %v:%p %q %r %s %U %w %V %T"
JkWorkerProperty worker.list=3Dtomcat,mrjwrkr JkWorkerProperty
worker.tomcat.type=3Dajp13 JkWorkerProperty JkWorkerProperty
worker.tomcat.port=3D8009 JkWorkerProperty worker.mrjwrkr.type=3Dajp13
JkWorkerProperty worker.mrjwrkr.port=3D50011 <Location /dev/user1/>
  # These work, more or less; can get to index.jsp->manager but then
  # These work, more or less; can get to index.jsp->manager but then
  #ProxyPass            ajp://
  #ProxyPassReverse     ajp://
  # This doesn't work at all
  #JkMount              mrjwrkr


    <!-- Define an AJP 1.3 Connector on port 50011 -->
    <Connector port=3D"50011" URIEncoding=3D"UTF-8"
               enableLookups=3D"false" redirectPort=3D"50013"
protocol=3D"AJP/1.3" />

    <!-- Define a non-SSL HTTP/1.1 Connector on port 50012 -->
    <Connector port=3D"50012" maxHttpHeaderSize=3D"8192" =
               maxThreads=3D"150" minSpareThreads=3D"25"
               enableLookups=3D"false" redirectPort=3D"50013"

    <Engine name=3D"Catalina" defaultHost=3D"localhost" =

Michael R. Jordan
Thomson Learning Solutions
20 Davis Drive
Belmont, CA  94002

+1 650 413 7431

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message