Hi everybody,
I've recently installed alfresco 5.1 on my ubuntu 16.04 server and managed to get it behind my Apache reverse proxy and making it accessible from the Internet.
I'm now trying the android mobile app but - weird - it works well in LAN (where my internal DNS point the FQDN to the apache reverse proxy server), while it's not able to retrieve the repository of a site from an external connection, giving me a:
An Error occurred: org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Gateway Time-out
I'm able to configure the application from the internet, pointing it to my FQDN, I can browse sites, check my tasks, but whenever I try to fetch files from the main repository or from a site repo, I'll get that error (screenshot in the attachment).
There shouldn't be any difference, both the requests from LAN or WAN are routed to my apache reverse proxy and - by the way - accessing share folder from the outside with any device (https://alfresco.mydomain.com) works great..
Do you have any idea? I haven't find any clue in any log file...
Thank you
Ok, I found where my - stupid - problem was, I hope that this post will help other newbies like me:
the mobile app was working in my local environment because it was pointing directly to alfresco server, even if I had configured it with the FQDN;
in order to make cmis use FQDN you have to modify ../tomcat/shared/classes/alfresco-global.properties this way:
# Override if using proxy server, change to true
# if true, the context path of OpenCMIS generated urls will be set to "opencmis.context.value", otherwise it will be taken from the request url
opencmis.context.override=false
opencmis.context.value=
# if true, the servlet path of OpenCMIS generated urls will be set to "opencmis.servletpath.value", otherwise it will be taken from the request url
opencmis.servletpath.override=false
opencmis.servletpath.value=
opencmis.server.override=true
opencmis.server.value=https://alfresco.mydomain.com
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.