cancel
Showing results for 
Search instead for 
Did you mean: 

Change the hostname in url in invitation email

rhannink
Champ on-the-rise
Champ on-the-rise
Hello,

Whenever I invite an external user from Alfresc Share, it sends an email containing an accept and reject link. Both links however have the intranet hostname http://share:8080 as hostname. While I would like this to be the FQD http://share.domain.nl:8080 so external users can directly use this link.

I saw that the invitation mail uses the url from the inviters browser so if my internal users send the invitation while their browser points at share.domainname.nl everything is ok.

Can I overwrite this setting in Alfresco so it always uses the FQD in the url in the invitation emails independent of the browsers url to Alfresco.

Thanks in advance,

Remco
13 REPLIES 13

kweilbacher
Champ in-the-making
Champ in-the-making
I also need to know how to do this. I have CE 3.4c installed on a Windows 2008 R2 Server using the simple install which defaults to using 127.0.0.1. I tried replacing 127.0.0.1 with my tested domain name url in the following line in alfresco-global.properties:
web.application.context.url=http://127.0.0.1:8080/alfresco

But the only thing this did was to change 127.0.0.1:8080 in the invite URL to localhost:8080

Any ideas or suggestions?
Kevin

dorego
Champ in-the-making
Champ in-the-making
I have this problem a well

did you fin a solution?

yowsing
Champ in-the-making
Champ in-the-making
after spending a few hours understanding alfresco, finally i found how to solved the above issue.
just go to your "alfresco installed folder"\virtual-tomcat\conf\alfresco-virtserver.properties

edit a line:

alfresco.virtualserver.domain=127-0-0-1.ip.alfrescodemo.net

and replace the 127-0-0-1 to the ip you need.

Happy R & D my Friend.

mrogers
Star Contributor
Star Contributor
I don't think that is correct.   There's is or should not be any connection between the virt server and share.

msyepez
Champ in-the-making
Champ in-the-making
Hello, I'm having the same problem in Community Share 3.4d. I haven't been able to change the default hostname (127.0.0.1) on site invite emails. Plus, the anchor link only "grabs" http://127.0.0.1:8080 and ignores the rest of the link, putting it as plain text. ¿Any ideas?  Smiley Surprisedops:

msyepez
Champ in-the-making
Champ in-the-making
Well, I found *part* of the answer. Don't log into Alfresco Share with a http://127.0.0.1:8080 URL on browser, instead use http://servername:8080 or http://192.168.1.1:8080 (for example, it's the local IP) and the email template will change accordingly. However, I still have the incomplete link problem…

saunan
Champ in-the-making
Champ in-the-making
The documentation below tells us WHAT to do, but not HOW to do it. What config file needs to be edited, or what admin page contains the form for defining and creating the publicly addressable URL?

http://docs.alfresco.com/3.5/index.jsp?topic=%2Fcom.alfresco.team.doc%2Ftasks%2Fat-install-linux.htm...

This URL is relevant only when you are working on the machine on which Alfresco Team is installed. However, other users will not be able to access this URL from their machines. To give other users access to the machine where Alfresco Team is installed, you need to define and create a publicly addressable name.

   1.  Disconnect from the URL http://127.0.0.1:8080/share.
   2. Define a name for the server and create the publicly addressable name. This is a name that you will need to publicize to the Alfresco Team members.
    3. Test the publicly addressable URL from a different machine. Use the addressable name, replacing the 127.0.0.1 in the URL, for example, http://<your-server-name>:8080/share.

scouil
Star Contributor
Star Contributor
Another solution (not the cleanest but…) would be to hardcode your server url in the invitation email.

Browse to Company home > data dictionnary > email models > invitation email model   and edit invite_user_email.ftl
Replace   ${url.serverPath}    by your hardcoded server name

About the incomplete url problem, I have no idea where it comes from. Have a deeper look at the invitation email template and you may find the answer.

alexandra
Champ on-the-rise
Champ on-the-rise
Another similar issue…

We are running Alfresco over SSL on port 443. How do you change the url-variable so the outgoing email says "https" instead of "http"?