AnsweredAssumed Answered

HOWTO: Change the default port from 8080

Question asked by mikeh Employee on Sep 13, 2010
Latest reply on May 29, 2018 by Aleksey Bykov
- Ensure your Tomcat instance is looking on our extensions classpath. See http://wiki.alfresco.com/wiki/Install_Tomcat6 for details
- Get share-config-custom.xml.sample from SVN: http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/slingshot/config/alfresco/web-extension/
- Copy this file to tomcat/shared/classes/alfresco/web-extension (create the folders if they're not there) and rename it to remove the .sample extension
- Edit this file (notepad will do, or any other text editor).
- You don't need most of the other config, just the section at the bottom… something like this:
<alfresco-config>

   <config evaluator="string-compare" condition="Remote">
      <remote>
         <endpoint>
            <id>alfresco-noauth</id>
            <name>Alfresco - unauthenticated access</name>
            <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>none</identity>
         </endpoint>

         <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>

         <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>http</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>

</alfresco-config>
- Edited the sample above to change the "localhost:8080" part of the URLs to match your local setup.
- Save the new config file and restart Tomcat (or just redeploy share)

Thanks,
Mike

Outcomes