Table of Contents

Alfresco hacks

Security best practices and tips

 chown -R alfresco:alfresco installRoot/
 chmod -R 600 installRoot

Proxying

TODO

Switch off Tomcat application server

TODO

Mobile APP (url redirections)

Alfresco 4.x

Problem:

The server is available through internal url : http://myalfresco:8080/alfresco
The server is available through external url : http://www.mycompany.com/alfresco

See: https://issues.alfresco.com/jira/browse/MOBILE-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

create <tomcat>/shared/classes/META-INF/spring-webscripts-config-custom.xml containing

<alfresco-config>
   
   <config evaluator="string-compare" condition="Server">
      <server>
         <scheme>http</scheme>
         <hostname>your-pulic-host</hostname>
         <port>your-port</port>
         <path>alfresco</path>
      </server>
   </config>
   
</alfresco-config> 

and make sure you have string “ shared.loader=${catalina.base}/shared/classes ” in file <tomcat>/conf/catalina.properties