cancel
Showing results for 
Search instead for 
Did you mean: 

Url.serverPath variable

mfoxtrot
Champ in-the-making
Champ in-the-making
In which configuration file should I change url.serverPath variable in order to receive email notifications with links that look like "http://myservername:8080/alfresco…" and not like "http://localhost:8080/alfresco…"?

Now I have to change my email notification templates with replacing this variable by exact address of my server.
24 REPLIES 24

kjcsb
Champ in-the-making
Champ in-the-making
Alfresco Community 4.0c

Neither of the suggestions above worked for me

sudo vi /var/lib/tomcat6/webapps/alfresco/WEB-INF/classes/alfresco/alfresco-shared.properties
#alfresco.rmi.services.external.host=localhost
alfresco.rmi.services.external.host=mydomain.com

sudo service tomcat6 restart

Didn't work

sudo vi /var/lib/tomcat6/shared/classes/alfresco-global.properties

repo.remote.url=http://mydomain.com/

sudo service tomcat6 restart

Didn't work

Any further suggestions appreciated.

fred-xte
Champ in-the-making
Champ in-the-making
Dear friends,
Dear Community members,

any solution for this issue ?
all the porposal in this loop seem not working.

Please advise

sharifu
Confirmed Champ
Confirmed Champ
I have tried but it does not work

mikeh
Star Contributor
Star Contributor
See if this works…

Create Tomcat/shared/classes/META-INF/spring-webscripts-config-custom.xml with the following content
<alfresco-config>

   <config evaluator="string-compare" condition="Server">
      <server>
         <!– Enable and adjust the following settings to allow for proxied use of Alfresco –>
         <scheme>[HTTP|HTTPS]</scheme>
         <hostname>[YOUR_HOSTNAME]</hostname>
         <port>[PORT]</port>
      </server>
   </config>

</alfresco-config>

sharifu
Confirmed Champ
Confirmed Champ
In the global properties file the following works

share.host=serverip