Its a good article - thanks for helping me to find it.
however i have now tried both options and found neither works.
Option 1 (mod-proxy) results in a web page with a few non standard ascii characters
option 2 (mod-jk) rseults in apache doing the forward (it appears) but tomcat not receiving the results:
error-log:
Code:
[Sun Jun 03 16:25:20 2007] [23883:47520] [info] jk_handler::mod_jk.c (2063): Service error=0 for worker=zimbra
[Sun Jun 03 16:30:25 2007] [20392:47520] [info] jk_open_socket::jk_connect.c (450): connect to 127.0.0.1:8019 failed with errno=111
[Sun Jun 03 16:30:25 2007] [20392:47520] [info] ajp_connect_to_endpoint::jk_ajp_common.c (872): Failed opening socket to (127.0.0.1:8019) with (errno=111)
[Sun Jun 03 16:30:25 2007] [20392:47520] [info] ajp_send_request::jk_ajp_common.c (1247): (zimbra) error connecting to the backend server (errno=111)
[Sun Jun 03 16:30:25 2007] [20392:47520] [info] ajp_service::jk_ajp_common.c (1867): (zimbra) sending request to tomcat failed, recoverable operation attempt=1
[Sun Jun 03 16:30:25 2007] [20392:47520] [info] jk_open_socket::jk_connect.c (450): connect to 127.0.0.1:8019 failed with errno=111
[Sun Jun 03 16:30:25 2007] [20392:47520] [info] ajp_connect_to_endpoint::jk_ajp_common.c (872): Failed opening socket to (127.0.0.1:8019) with (errno=111)
[Sun Jun 03 16:30:25 2007] [20392:47520] [info] ajp_send_request::jk_ajp_common.c (1247): (zimbra) error connecting to the backend server (errno=111)
[Sun Jun 03 16:30:25 2007] [20392:47520] [info] ajp_service::jk_ajp_common.c (1867): (zimbra) sending request to tomcat failed, recoverable operation attempt=2
[Sun Jun 03 16:30:25 2007] [20392:47520] [error] ajp_service::jk_ajp_common.c (1879): (zimbra) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port
[Sun Jun 03 16:30:25 2007] zimbra 208.109.162.164 0.000761
[Sun Jun 03 16:30:25 2007] [20392:47520] [info] jk_handler::mod_jk.c (2063): Service error=0 for worker=zimbra
Here is what was in the xml file:
Code:
<Connector port="6080"
acceptCount="1024" URIEncoding="UTF-8"
enableLookups="false" redirectPort="8443"
compression="on"
compressionMinSize="1024"
compressableMimeType="text/html,text/plain,text/css"
noCompressionUserAgents=".*MSIE 6.*"
maxThreads="100" minSpareThreads="100" maxSpareThreads="100"/>
....
<!-- for mod_jk -->
<Connector port="8019" acceptCount="1024" enableLookups="false" redirectPort="6443" protocol="AJP/1.3" />
<!-- for mod_jk --> the instructions to restart tomcat didn't specify user, so i tried the following:
as user zimbra (and user root) /opt/zimbra/tomcat/bin/startup.sh (or shutdown.sh)
I tried starting zmcontrol (as user zimbra).
i did notice that my pop3 access was not working under this configuration.
I did try 8009 and 8019 (as you see above) in case there was a conflict with another usage of the 8009 port - same results found in log file were posted above.