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
This entry was posted in JAVA, OPEN SOURCE and tagged , , , . Bookmark the permalink.

2 Responses to Share Point Protocol Support in Alfresco 3.4

  1. Paul Holmes-Higgin says:

    Nice work. Do you have any suggestions on what we should do to make things better out of the box for this?

    Paul.

    • Hongbo says:

      Thanks for reading my piece.

      Couple of suggestions:

      1. allow SPP/VTI’s context to be different from the repository.
      2. allow SPP/VTI to be configured on a separate web app instance.
      3. allow Edit Online for Repository in Alfresco Share
      4. allow Edit Online for Non IE browsers (FF, Safari and Chrome)
      5. configuration like vti.server.external.port=443 is a bit dummy, but it has to be there to make the Edit Online work with https
      6. improve support@Alfresco, especially for enterprise customers. Alfresco customer support was pretty good when we rolled out 3.2. I have to say that I have different experience now with 3.4.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s