cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Office Services returns 127.0.0.1 in URL

ahorvath3141
Champ in-the-making
Champ in-the-making

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 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

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 answer in original post

6 REPLIES 6

afaust
Legendary Innovator
Legendary Innovator

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.

ahorvath3141
Champ in-the-making
Champ in-the-making

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
World-Class Innovator
World-Class Innovator

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.

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

cesarista
World-Class Innovator
World-Class Innovator

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

Regards.

--C.

afaust
Legendary Innovator
Legendary Innovator

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