AnsweredAssumed Answered

alfresco/share 5.0c webdav links broken behind reverse proxy

Question asked by ltendi on Feb 8, 2015
Latest reply on Feb 18, 2015 by ltendi
I've just configured alfresco/share 5.0c to work behind an apache 2.2 reverse proxy on CENTOS 6.6.

The configuration seems to work as expected, and I can also access properly using webdav  (https://mydomain.com/webdav/… works fine) but when I look at the url to share the current page I get:

https://mydomain.com/share/page/folder-details?nodeRef=workspace://SpacesStore/7c147dd7-402c-44c8-b6ac-b0e47df2810b (this is correct)
http://mydomain.local:8080/alfresco/webdav/Sites/fvg-copia/documentLibrary/894 (This it is not correct because it is the internal url)

This is true for all kind of objects into the repository.

How can I fix this problem?

Follow the changes done up to now.

reverse proxy configuration file:

        RewriteRule ^/share$ /share/ [R]
        RewriteRule ^/alfresco$ /alfresco/ [R]
        ProxyPass /share http://share-fvg.tbsit.local:8080/share
        ProxyPassReverse /share http://share-fvg.tbsit.local:8080/share
        ProxyPass /alfresco http://share-fvg.tbsit.local:8080/alfresco
        ProxyPassReverse /alfresco http://share-fvg.tbsit.local:8080/alfresco



alfresco-global.properties:

alfresco.context=alfresco
alfresco.host=mydomain.com
alfresco.port=443
alfresco.protocol=https

share.context=share
share.host= mydomain.com
share.port=443
share.protocol=https

I also changed share-config-custom.xml adding a few lines to relax CSRF checks: see attached files.
  

Regards Luciano

Outcomes