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

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
Figured it out - changes to the ftl templates must be done through the Alfresco Explorer.

1-Navigate to the template - Company Home > Data Dictionary > Email Templates > Notify Email Templates
2-Check out and edit template
3-Check in template
4-All is good….

Tim

this is good solution Smiley Happy
but it is a bit not nice, use my code to create dialog defined for admin to automaticly correct the paths to your server .

geezbit
Champ in-the-making
Champ in-the-making
Odd.  While testing invite I was logged into share via IP (http://10.1.1.1:8080/share).  Invite sent accept path as http://10.1.1.1:8080/share/invite_etc.

Later I logged in using server host name http://ubu.domain.com:8080/share).  Invite sent accept path as http://ubu.domain.com:8080/share/invite_etc.

To confirm I gave server another DNS entry and logged into http://alfresco.domain.com:8080/share.  Sure enough invite sent accept path as http://alfresco.domain.com:8080/share/invite_etc.

Appears Alfresco is taking path from the url YOU are logging into.  Hope this helps.

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
I did not know this, great!

manders
Champ in-the-making
Champ in-the-making
The url.serverPath variable gets its value from the repo.remote.url directive in repository.properties. By default it is set to http://localhost:8080/alfresco - simply replace with the correct external URL and your emailed links will go out fine. You can also override the repo.remote.url directive in tomcat/shared/classes/alfresco-global.properties for a more upgrade-friendly configuration.

Hope that helps!

bkjonah
Champ in-the-making
Champ in-the-making
Hey guys you dont have to edit the template to change the url.serverPath, that means you will have to change all the templates for invitation emails and all the links.

Here is the best solution; there is a file you have to edit and all the others will be good
the file is called: alfresco-shared.properties and can get it in \alfresco\WEB-INF\classes\alfresco\alfresco-shared.properties

look for a line alfresco.rmi.services.external.host=localhost
edit and change localhost to the servername or server IP
save and restart the alfresco service then try to send and invitation

That has to work, any question get me here bkjonah@hotmail.com
Enjoy using alfresco
Jonathan

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

———————————————————-
Here is what i did; there is a file you have to edit and all the others will be good
the file is called: alfresco-shared.properties and can get it in \alfresco\WEB-INF\classes\alfresco\alfresco-shared.properties

look for a line alfresco.rmi.services.external.host=localhost
edit and change localhost to the servername or server IP
save and restart the alfresco service then try to send and invitation

iblanco
Confirmed Champ
Confirmed Champ
rmi.external ???? I wouldn't change that!!! It sounds to me that what you are changing is the RMI listening port.ç

In alfresco-global.properties there are those properties:

#
# URL Generation Parameters (The ${localname} token is replaced by the local ser
ver name)
#
alfresco.context=alfresco
alfresco.host=your.server.fullname
alfresco.port=80
alfresco.protocol=http

share.context=share
share.host=your.shareserver.fullname
share.port=80
share.protocol=http

I would give those a try.

douglascrp
World-Class Innovator
World-Class Innovator
rmi.external ???? I wouldn't change that!!! It sounds to me that what you are changing is the RMI listening port.ç

In alfresco-global.properties there are those properties:

#
# URL Generation Parameters (The ${localname} token is replaced by the local ser
ver name)
#
alfresco.context=alfresco
alfresco.host=your.server.fullname
alfresco.port=80
alfresco.protocol=http

share.context=share
share.host=your.shareserver.fullname
share.port=80
share.protocol=http

I would give those a try.

That didn't work for me.

The url set in the invitation email is the same that I'm using to access the alfresco/share page, even after changing this lines and restarting Alfresco service.

Thanks in advance.

ssrjazz
Champ in-the-making
Champ in-the-making
I have tried every setting suggested in this post and restarted alfresco with each change and none of them seem to work.  Running 3.4d community edition.

jorgetarlea
Champ in-the-making
Champ in-the-making
ssrjazz, same problem here. I have tried all the methods above and the invitation email still sends "localhost" instead of the IP of my server.

Any idea please?

Thank you.