title: How to install mod_jk on Mac OS X
body: <p>I am looking for a correct way to install mod_jk on Mac OS X 10.7 Lion or above. The goal is to test Tomcat behind Apache HTTPD.</p>
  
  <p>I've found so far the only way to install mod_jk is to download source then configure it in the console and make and make install.</p>
  
  <p>This is not very true because I will need to manage mod_jk installation and configuration myself. I for example can forget to delete mod_jk later when needed. Anyway I think there should be more friendly way to install mod_jk like some kind of DMG package.</p>
  
  <p>I also found that mod_jk is available in the OS X Server. Actually it's on my development machine, but available only for the server.</p>
  
  <pre><code>&lt;IfDefine MACOSXSERVER&gt;
  ...
  #LoadModule jk_module libexec/apache2/mod_jk.so
  ...
  &lt;/IfDefine MACOSXSERVER&gt;
  </code></pre>
  
  <p>May be there is a package for mod_jk somewhere for developers who don't install OS X Server or any other way.</p>
  
  <p><strong>UPDATES</strong></p>
  
  <ol>
  <li><a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html" rel="nofollow noreferrer">mod_proxy_ajp</a> is an alternative. Main Pros: it's bundled with Apache and Mac OS X</li>
  <li>I now tested <a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html" rel="nofollow noreferrer">mod_proxy_ajp</a> in my configuration and can say that it's even better - because no need extra configuration. mod_proxy_ajp goes out of the box on Mac and perhaps on linux-server too I believe. You also don't need to use extra workers.properties file.</li>
  </ol>
  
  <p>Here is how my config looks like:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin me@me.com
      DocumentRoot "/Users/me/Sites/projekt"
      ServerName projekt.local
  
      &lt;Directory "/Users/me/Sites/projekt"&gt;
          Options Indexes FollowSymLinks
          AllowOverride All
          Order allow,deny
          Allow from all
      &lt;/Directory&gt;
  
      &lt;Proxy *&gt;
        AddDefaultCharset Off
        Order deny,allow
        Allow from all
      &lt;/Proxy&gt;
  
      ProxyPass /coolapp ajp://localhost:8009/coolapp
      ProxyPassReverse /coolapp ajp://localhost:8009/coolapp
  
      ErrorLog "/private/var/log/apache2/projekt.local-error_log"
      CustomLog "/private/var/log/apache2/projekt.local-access_log" common    
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>This above and configured Tomcat with AJP connector is only what you need. Amazing!</p>
  
  <p>Reference:</p>
  
  <ol>
  <li>Install mod_jk on OS X - <a href="http://www.bartbusschots.ie/blog/?p=1347" rel="nofollow noreferrer">http://www.bartbusschots.ie/blog/?p=1347</a></li>
  <li>Comparison mod_jk vs. mod_proxy_ajp <a href="https://stackoverflow.com/questions/1081918/apache-to-tomcat-mod-jk-vs-mod-proxy">apache to tomcat: mod_jk vs mod_proxy</a></li>
  <li><a href="http://www.zeitoun.net/articles/configure-mod_proxy_ajp-with-tomcat/start" rel="nofollow noreferrer">How to configure mod_proxy_ajp with Tomcat ?</a></li>
  </ol>
  
  <p>Please suggest.</p>