cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Alfresco Share aftare modifying 'alfresco' folder in tomcat

jlabuelo
Champ on-the-rise
Champ on-the-rise
Hi there

       Searching in the forum, I have found that if you change the name of the folder and war file in tomcat/webapps from alfresco and alfresco.war for example to "instance1" and "instance1.war", then users  will not be able to access the default installation of Alfresco Share as Alfresco Share will look for "http://localhost:8080/alfresco" to perform the user log in function, and this url h will not exist.

Which configuration files do I must modify to tell Share to work with "http://localhost:8080/instance1" instead of "http://localhost:8080/alfresco", so users can also log in Alfresco Share??

Thanks a lot in advance.
2 REPLIES 2

sujaypillai
Confirmed Champ
Confirmed Champ
Check the file tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml for below config section -


   <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>
        
         <endpoint>
            <id>activiti-admin</id>
            <name>Activiti Admin UI - user access</name>
            <description>Access to Activiti Admin UI, that requires user authentication</description>
            <connector-id>activiti-admin-connector</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/activiti-admin</endpoint-url>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>


Replace all endpoint-url with required values.

Also do a grep on "http://localhost:8080/alfresco" under tomcat/webapps/share folder to find any similar pattern.

P.S : You will be having a difficult time ahead maintaining the application.

Hi thanks a lot, will give it a try and let you know. Also I think you are right, maybe is not worth to change the name of the alfresco.war and alfresco folder, so we will start thinking about other way to achieve our configuration.

Thanks again!