You need to set the properties of Alfresco's sysAdmin subsystem in your alfresco-global.properties: http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/concepts/sysadmin-subsystem-props.html
e.g.:
share.host=myalfresco
share.port=80
Question
I added the gmail smtp configuration to the alfresco share. Whenever I created a new site. Whenever I invite someone a url is sent to the corresponding person but the url which is send is the problem. It is sending the local address which when clicked by the user in different computer will take to his localhost instead of alfresco share.
How to change this url. I am using alfresco share 4.2e,CE.
Solution
You need to set the properties of Alfresco's sysAdmin subsystem in your alfresco-global.properties: http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/concepts/sysadmin-subsystem-props.html
e.g.:
share.host=myalfresco
share.port=80
OTHER TIPS
In Linux
/opt/alfresco-5.1/tomcat/shared/classes/alfresco-global.properties
In Windows
C:\alfresco-community\tomcat\shared\classes\alfresco-global.properties
share.context=share
share.host=127.0.0.1
share.port=8080
share.protocol=http