I can give you some setup instructions on how to setup the Alfresco+apache. I've tried numerous times to get it to work with tomcat and never could get the SSL to work. If you do enough researching you will find all the same material I'm about to post from other threads as well. None of what I'm about to give I can take the credit for. Keep in mind that these instructions were made for Centos and they may differ slightly on your ubuntu. Only you can really determine that.First things first if this is a vanilla install then you can add all of the items below in no particular order. Also, you want to purchase a valid SSL cert from a certificate authority. Example:http://www.digicert.com/ppc/?gclid=COPigMfav70CFcRefgodMigAngEdit your Alfresco-global.properties file and add or edit the following:
### Sharepoint ###
vti.server.external.host=myhostname.net
vti.server.external.port=1111
vti.server.external.protocol=https
Note: Port 1111 is used for this example its not one that I use officially, but for the purpose of this guide I'm referencing it. Also, I didn't want to use the standard port number 7070 for security reasons. So feel free to use 7070 or whatever other port you want to use.Prerequisites: You need to install mod_jk, httpd-develOptional: php-pear, php-devel, pecl install apcDownload the ajp tomcat connector: tomcat-connectors-1.2.37-src.tar.gz (there might be an updated version)Place the tar file contents to usr/src/*cd /usr/src/tomcat-connectors-1.2.37-src/native ./configure –with-apxs=/usr/sbin/apxs && make && make installcp ./apache-2.0/mod_jk.so /usr/lib64/httpd/modules/———————————————–Create the following file:/opt/alfresco/tomcat/conf/Catalina/localhost/ROOT.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context path="" docBase="share.war">
</Context>
——————————————————Next we need to setup a connector for Apache. It's possible this is *already done* on your Tomcat install by default, if not add the following in the CatalinaService section in /path to your install/alfresco/tomcat/conf/server.xml:
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
————————————————Need to define a worker file. I used /opt/alfresco/tomcat/conf/workers.properties as configuration file:
worker.list=tomcat
worker.tomcat.port=8009
worker.tomcat.host=localhost
worker.tomcat.type=ajp13
worker.tomcat.lbfactor=1
The name tomcat is arbitrary, so you can replace all occurrences with whatever you like.—————————————————Create a config file in /etc/httpd/conf.d/I named it alfresco.conf
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /path to your install/alfresco/tomcat/conf/workers.properties
In Apache add this to the end of your config.
<VirtualHost *:443>
ServerName mydomain.net
SSLEngine on
SSLCertificateKeyFile /path to my file.key
SSLCertificateFile /path to my file.crt
SSLCACertificateFile /path to my CAfile.crt
#ProxyPass /paste http://localhost/paste/
#ProxyPassReverse /paste http://localhost/paste/
RequestHeader set X-Forwarded-Proto "https"
ProxyPass / http://myhostname:8080/
ProxyPassReverse / http://myhostname:8080/
ProxyTimeout 300
SSLProxyEngine on
<Proxy *>
allow from all
</Proxy>
</VirtualHost>
<VirtualHost *:1111>
ServerName mydomain.net
SSLEngine on
SSLCertificateKeyFile /path to my file.key
SSLCertificateFile /path to my file.crt
SSLCACertificateFile /path to my CA file.crt
RequestHeader set X-Forwarded-Proto "https"
ProxyPass / ajp://127.0.0.1:7070/
ProxyPassReverse / ajp:127.0.0.1:7070/
ProxyTimeout 300
SSLProxyEngine on
<Proxy *>
Allow from all
</Proxy>
</VirtualHost>
Now for a SSL connection on your sharepoint do the following:Download the file jetty-ajp-6.1.14.jar from http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-ajp/6.1.14/ (this might be an outdated version of the file.)Place the jar file in webapps/alfresco/WEB-INF/lib Locate the following file: //alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/org.alfresco.module.vti/context/vti.context.xmlSearch for the
<bean id=“vtiServerConnector” class=“org.mortbay.jetty.bio.SocketConnector”>
Comment it outPut the following below it:
<bean id="vtiServerConnector" class="org.mortbay.jetty.ajp.Ajp13SocketConnector">
<property name="port">
<value>${vti.server.port}</value>
</property>
<property name="headerBufferSize">
<value>8192</value>
</property>
</bean>
You may need to edit your ssl.conf file and enter Listen 1111 or whatever port number you decide to use if not the default 7070.Restart alfresco service and you should be good to go.NOW I stress that you may still have a SSL issue because the guys at Alfresco included a picture file that downloads on the sign in page from their website. This "kinda" breaks a true SSL connection. I had to disable that in order for everything to end up the way that I wanted it to. Hope this helps. Sorry I can't help you with the tomcat portion, but there are a lot of smart peeps in this forum that can help with that if you decide to go that route.