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_jkapt-get install libapache2-mod-jk
then in the /etc/apache2 apache2.conf file I added the following at the end:
JkWorkersFile /etc/apache2/workers.properties
# 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 "workers.properties" to /etc/apache2/ with the following content:
workers.tomcat_home=/opt/Alfresco/tomcat
workers.java_home=/usr/lib/jvm/java-6-sun-1.6.0.13/
ps=/
worker.list=worker1
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
worker.default.lbfactor=1
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.xmlafter 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