title: Apache not using desired ports on workers.properties
body: <p>We've configured Apache to redirect to an instance of tomcat through a diferent port of the AJP default 8009 . It only works for the default port but it's not working with the one we set (8109) on the worker.properties This is our scenario</p>
  
  <p><strong>worker.properties on /etc/apache2</strong></p>
  
  <pre><code>worker.list=sacmimexico
  # Set properties for sacmimexico
  worker.sacmimexico.type=ajp13
  worker.sacmimexico.host=localhost
  worker.sacmimexico.port=8109
  </code></pre>
  
  <p><strong>server.xml on /usr/share/instance-tomcat-7.0.42/sacmimexico/conf/</strong></p>
  
  <pre><code>&lt;!-- Define an AJP 1.3 Connector on port 8009 --&gt;
  &lt;Connector port="8109" protocol="AJP/1.3" redirectPort="8143" /&gt;
  </code></pre>
  
  <p><strong>mod_jk.log on /var/log/apache2</strong></p>
  
  <pre><code>[Wed Oct 14 05:29:18 2015] [17752:140024424515392] [info] init_jk::mod_jk.c (3189): mod_jk/1.2.30 initialized
  [Wed Oct 14 05:29:18 2015] [17753:140024424515392] [info] init_jk::mod_jk.c (3189): mod_jk/1.2.30 initialized
  [Wed Oct 14 05:29:22 2015] [17757:140024328361728] [info] jk_open_socket::jk_connect.c (622): connect to 127.0.0.1:8009 failed (errno=111)
  [Wed Oct 14 05:29:22 2015] [17757:140024328361728] [info] ajp_connect_to_endpoint::jk_ajp_common.c (959): Failed opening socket to (127.0.0.1:8009) (errno=111)
  [Wed Oct 14 05:29:22 2015] [17757:140024328361728] [error] ajp_send_request::jk_ajp_common.c (1585): (sacmimexico) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
  [Wed Oct 14 05:29:22 2015] [17757:140024328361728] [info] ajp_service::jk_ajp_common.c (2540): (sacmimexico) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
  [Wed Oct 14 05:29:22 2015] [17757:140024328361728] [info] jk_open_socket::jk_connect.c (622): connect to 127.0.0.1:8009 failed (errno=111)
  [Wed Oct 14 05:29:22 2015] [17757:140024328361728] [info] ajp_connect_to_endpoint::jk_ajp_common.c (959): Failed opening socket to (127.0.0.1:8009) (errno=111)
  [Wed Oct 14 05:29:22 2015] [17757:140024328361728] [error] ajp_send_request::jk_ajp_common.c (1585): (sacmimexico) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
  [Wed Oct 14 05:29:22 2015] [17757:140024328361728] [info] ajp_service::jk_ajp_common.c (2540): (sacmimexico) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
  [Wed Oct 14 05:29:22 2015] [17757:140024328361728] [error] ajp_service::jk_ajp_common.c (2559): (sacmimexico) connecting to tomcat failed.
  [Wed Oct 14 05:29:22 2015] sacmimexico 199.187.122.163 0.100588
  [Wed Oct 14 05:29:22 2015] [17757:140024328361728] [info] jk_handler::mod_jk.c (2618): Service error=-3 for worker=sacmimexico
  </code></pre>
  
  <p><strong>jk.conf on /etc/apache2/mods-available</strong> </p>
  
  <pre><code>&lt;IfModule mod_jk.c&gt;
   JkWorkersFile "/etc/apache2/workers.properties"
   JkLogFile "/var/log/apache2/mod_jk.log"
   JkLogLevel info
   JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
   JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
   JkRequestLogFormat "%w %V %T"
  &lt;/IfModule&gt;
  </code></pre>
  
  <p><strong>default on  /etc/apache2/sites-available</strong> </p>
  
  <pre><code>JkMount /sacmimexico/* sacmimexico
  </code></pre>
  
  <p>Versions: </p>
  
  <p>Apache 2 :Apache/2.2.16 (Debian)</p>
  
  <p>Tomcat 7 : Apache Tomcat/7.0.42</p>
  
  <p>mod-jk : 1.2.30-1squeeze1</p>
  
  <p>We know that Tomcat is working on that port 8109 
  Anyone knows what's happening?</p>
  
  <p>Thanks</p>
  
  <p>Albert</p>