OnlyOffice Nextcloud Connecter Not Using Virtal Path in URL

Hello,

I am in the process of setting up OnlyOffice to work with my Nextcloud AIO and NPM instance. I believe I have everything setup correctly on both ends but when I go to add the OnlyOffice docs address I get a 404 error when it tries to download the test document.

Error when trying to connect (Client error: `GET https://nextcloud.domain/cache/files/data/conv_check_1611610819_65/output.docx/check_1611610819.docx?md5=6Jo67P1ukvSXpV9z7QlHxA&expires=1725976787&shardkey=4204899415&filename=check_1611610819.docx` resulted in a `404 Not Found` response:

I set my onlyoffice instance up to respond on a virtual host so I can host it on the same domain on nextcloud which is https://nextcloud.domain/office/
One thing I noticed is when I paste that URL in the browser but add /office/ after .com and before /cache/ the document downloads. I am kind of confused as to why the ONLYOFFICE Docs address would strip the /office/ in my url when the first part of checking https://nextcloud.domain/office/healthcheck works. Any help would be greatly appreciated!

Hello @Delgado,

What proxy are you using in front of your setup? Please make sure you use X-Forwarded-Host header in its configuration so that the Document Server forms URLs using the forwarded hostname.

You can find example configs for proxy servers in front of the Document Server here:

Carl,

I am using Nginx Proxy Manager. Thanks for pointing me in the correct location. I added the proxy head information to may custom location and I was able to connect.

1 Like

Hello @Delgado
If you don’t mind, I will join this thread as well.
Do I understand it right that the situation has been solved?

@Alexandre. That is correct. It has been solved.

1 Like