cancel
Showing results for 
Search instead for 
Did you mean: 

alfresco/share 5.0c webdav links broken behind reverse proxy

ltendi
Champ on-the-rise
Champ on-the-rise
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-b6... (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
2 REPLIES 2

parashiftaustra
Confirmed Champ
Confirmed Champ
It might be your alfresco remote endpoint settings in share-config-custom.xml which needs to be changed. Try changing this directive to the external URL:

<endpoint>
<id>alfresco</id>
<name>Alfresco - user access</name>
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>;
<identity
>user</identity>
         </endpoint>


Hope this helps!

ltendi
Champ on-the-rise
Champ on-the-rise
I fixed changing the following parameter in share-config-custom.xml



<!–

         If set, will present a WebDAV link for the current item on the Document and Folder details pages.

         Also used to generate the "View in Alfresco Explorer" action for folders.

  –>

<repository-url>https://myserver.mydomain.com/alfresco</repository-url>


Regards Luciano