AnsweredAssumed Answered

Solution: Using mod_jk with Alfresco

Question asked by thestorm on Jul 9, 2009
Latest reply on Aug 24, 2011 by michaelc
Since I needed a "Webserver" way to access Alfresco i figured out a way to use mod_jk with Alfresco.

My system is a ubuntu 9.04-server (32bit).

First I installed mod_jk
apt-get install libapache2-mod-jk

then in the /etc/apache2 apache2.conf file I added the following at the end:

JkWorkersFile /etc/apache2/

# Where to put jk logs
JkLogFile /var/log/apache2/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel info

# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize -ForwardDirectories

# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"

# Send servlet for context /alfresco to your repository
JkMount /alfresco worker1

# Send JSPs for context /alfresco/* to your repository
JkMount /alfresco/* worker1

then i added a file called "" to /etc/apache2/ with the following content:



then I added the mountpoints to the virtual host file (/etc/apache2/sites-enabled/000-default)

        JkMountCopy On
        JkMount /alfresco worker1
        JKMount /alfresco/* worker1

finally I added a endpoint in the repository for the AJP13 connection.

edit file /opt/Alfresco/tomcat/conf/server.xml

after this part:

    <!– A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080

add the following line:

    <!– Define an AJP 1.3 Connector on port 8009 –>
    <Connector port="8009"
               enableLookups="false" redirectPort="8442" protocol="AJP/1.3" />

then restart Alfresco and when Alfresco is running restart apache2.

Works fine for me. Now my ppl can access Alfresco like http://intranet/alfresco