Alfresco Office Services returns 127.0.0.1 in URL

cancel
Showing results for 
Search instead for 
Did you mean: 
ahorvath3141
Member II

Alfresco Office Services returns 127.0.0.1 in URL

Jump to solution

When I try to edit the document in MS Word (clicking the "Edit in Microsoft Office" link) the URL of the document contains 127.0.0.1 isntead of the real host, so MS Word cannot open the document.

It is a vanilla Alfresco Community v5.2.0 installation. I did not change anything in the config files. Where should I configure this?

1 Solution

Accepted Solutions
afaust
Master

Re: Alfresco Office Services returns 127.0.0.1 in URL

Jump to solution

For whatever reason it is not really documented that you can set the aos.baseUrlOverwrite property in alfresco-global.properties to specify an explicit base URL to use when generating the URLs/links for Edit Online, which is necessary in proxy-based use cases but also if the name of the local host is not reliably resolved by default to a publicly accessible name.

The default value of this property is:

aos.baseUrlOverwrite=http://${localname}:8080/alfresco/aos

And you'd simply have to specify an explicit host name to fix it.

View solution in original post

6 Replies
afaust
Master

Re: Alfresco Office Services returns 127.0.0.1 in URL

Jump to solution

For whatever reason it is not really documented that you can set the aos.baseUrlOverwrite property in alfresco-global.properties to specify an explicit base URL to use when generating the URLs/links for Edit Online, which is necessary in proxy-based use cases but also if the name of the local host is not reliably resolved by default to a publicly accessible name.

The default value of this property is:

aos.baseUrlOverwrite=http://${localname}:8080/alfresco/aos

And you'd simply have to specify an explicit host name to fix it.

cesarista
Customer

Re: Alfresco Office Services returns 127.0.0.1 in URL

Jump to solution

Maybe you have to configure alfresco.host too in alfresco-global.properties

Regards.

--C.

afaust
Master

Re: Alfresco Office Services returns 127.0.0.1 in URL

Jump to solution

Yes, but that only / primarily affects email link generation...

ahorvath3141
Member II

Re: Alfresco Office Services returns 127.0.0.1 in URL

Jump to solution

Hi Axel,

That was the solution. aos.baseUrlOverwrite works fine. Thank you for your help.

My next problem, that when I save the document after editing in Word, it always says that somebody else is editing as well and the changes will be merged. It is annoying (because it is not true), but the final result is OK, it saves the document correctly as a new minor version.

douglascrp
Advanced II

Re: Alfresco Office Services returns 127.0.0.1 in URL

Jump to solution

Hello.

If the original problem is solved, you should be marking this thread as Solved, and then start a new one with the new problem.

You second question is kind of lost in here.

bayat
Active Member

Re: Alfresco Office Services returns 127.0.0.1 in URL

Jump to solution

Hello! Have you solved this issue? I faced with the same problem