Share Point Protocol Support in Alfresco 3.4

Share Point Protocol Support finally works in Alfresco 3.4. It is provided by an embedded Jetty server in the repository and deployed as the same context as the repository.  This feature in Alfresco is much anticipated by our end users.  But there are a few gotta:

  1. Out of box, SPP/VTI is configured on port 7070 with http only, it’s not straightforward to add SSL.
  2. The SPP/VTI server context has to the same as the repository and cannot be changed, this add a bit of challenge to proxy it properly.

With a bit tweaking and powerful proxy function of Apache, here is how we get around it.

Suppose that Alfresco is installed on alf.yourco.com and Apache is on dm.yourco.com.

  1. Add an alias dmsp. yourco.com to dm.yourco.com
  2. Repository: https://dm.yourco.com/alfresco proxy ajp://alf.yourco.com/alfresco
  3. Share: https://dm.yourco.com/share proxy ajp://alf.yourco.com/share
  4. VTI/SPP: https://dmsp.yourco.com/alfresco proxy http://alf.yourco.com:7070/alfresco
  5. Configure Apache on dmsp/dm.yourco.com to do the forwarding
  6. NameVirtualHost *:80
    
    <VirtualHost *:80>
            ServerName dm.yourco.com
    
            ProxyPass /alfresco ajp://alf.yourco.com:8009/alfresco retry=5
            ProxyPass /share ajp://alf.yourco.com:8009/share retry=5
            ProxyPassReverse /alfresco ajp://alf.yourco.com:8009/alfresco
            ProxyPassReverse /share ajp://alf.yourco.com:8009/share
    
            RewriteEngine on
            RewriteRule ^/$ "https://dm.yourco.com/share/" [R=302,L]
    </VirtualHost>
    
    <VirtualHost *:80>
            ServerName dmsp.yourco.com
    
            ProxyPass / http://alf.yourco.com:7070/
            ProxyPassReverse / http://alf.yourco.com:7070/
    </VirtualHost>
    
  7. add
                  vti.server.external.host=https://dmsp.yourco.com
                  vti.server.external.port=443
                
  8. to alfresco-global.properties

  9. Voila
Advertisements
Posted in JAVA, OPEN SOURCE | Tagged , , , | 2 Comments

Follow your passion

The story goes:

A little dog is chasing her tail. When a wise dog asks why, the little dog said, “that is where my happiness is.” The wise dog said, “Ar, my tail is also where my happiness is, but when I chase it, it runs further away from me. When I go about doing things that I like, it follows me.

Aren’t we all chasing our little tails while climbing the corporate ladder and forget about where our passions are?

Posted in GENERAL | Tagged , | 1 Comment

EHM

John Perkins’s Confessions of an Economic Hit Man

is a facilitating book to read.

Posted in GENERAL | Leave a comment