I have installed NC 26 running on https://mynextcloud.com and I have setup collabora on same server with apache reverse proxy. When i put https://collaboradomain in my nextcloud office settings its green bullet there seems all fine. but it opens blank document.
Following is the error:
wsd-482327-482352 2023-06-01 18:33:22.257284 +0000 [ websrv_poll ] ERR #25:#25 bad request: [GET /cool/https%3A%2F%2Fmynextcloud.com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F1252904_ocpue9o%3Faccess_token%3DdK9rXrV9T6cK54yRZdzm7OSfLHrrAsf6%26access_token_ttl%3D1685680382000%26permission%3Dedit/ws?WOPISrc=https%3A%2F%2Fmynextcloud.com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F1252904_ocpquezrqp9o&compat=/ws HTTP/1.1#015…]: Invalid or unknown request.| wsd/COOLWSD.cpp:3953
I tried to understand this, but my setup is not with docker and I don’t have knowledge of docker containers. I am using simple apache Virtual Host for Nextcloud and collabora. I can share virtual host configuration.
Further investigating via browser developer mode: Following logs collected
It seems like request from nextcloud is going to wss socket. Since we are using SSL Proxy with domain name for collabora i think request should go through ws://collobora/cool or https i think instead wss.
Following commands i run during deployment.
$ sudo coolconfig set ssl.enable false
$ sudo coolconfig set ssl.termination true
How to make NC to send request over ws or https reverse proxy?
there is nothing wrong with ws:// which is web-socket and used for real-time communication (in opposite to request/respose of regular http protocol). I think something is wrong with the reverse proxy which sends request intended to Nextcloud to Collabora.
I’m not very familiar with Apache as reverse proxy… but my guess - there the hostname config is not right… from the post above it looks like you have the config for Colalbora and Nextcloud located in different files… Collabora states
These lines should be inserted into <VirtualHost> definition of the site.
so I would expect both NC and CODE config live in the same VirtualHost