Changing Default Port Configuration

From AlfrescoWiki

Jump to: navigation, search


With some installations, the alfresco default port shall be moved from port 8080. This works fine with the Alfresco Explorer, possibly breaks the Alfresco Share authentication, however.

Contents

[edit] Up to version Lab 3.0C

There are a number of configuration files you have to update if you're moving the Alfresco Repository to a port other than 8080.

These are:

  • $ALF_HOME/tomcat/conf/server.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/urlrewrite.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/pagerenderer-config.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/webscript-framework-config-test.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/webscript-framework-config.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/webscripts/org/alfresco/indexall.get.mediawiki.ftl
  • $ALF_HOME/tomcat/shared/classes/alfresco/extension/custom-repository.properties and add an entry to overide the default: repo.remote.endpoint.url=http://localhost:8080/alfresco/service

To double-check that's all of them, search for "8080" under the Share webapp and update to your new port to match your configuration to.

[edit] Workaround

With tomcat, you can just edit the $ALF_HOME/tomcat/conf/server.xml and copy & paste the connector definition to allow for two http ports. This way, the external access can go to the "new" port while the alfresco system can still access "localhost:8080".


[edit] Future Versions

It is planned for future versions to allow for central configuration of the port. It is not fixed yet, when this will be included.

[edit] Links

Alfresco Forum Entry