Updated Collabora/Nextcloud and now get 404?

In my attempt to untangle the clusterf*ck that is Collabora/Office in NC23 I ended up solving your problem (and mine as well).

It turns out that some paths changed in the CODE docker. This helpful documentation helped me figure it out (it’s somehow up to date despite pointing to resources that have disappeared). It gives an example for Apache but you should be able to transpose it to Nginx :

  • the first redirection you have in your reverse-proxy (if you followed just about any tutorial for CODE) should be /browser now, pointing to /browser behind the proxy
  • /lool/(.*)/ws$ pointing to wss://<host>:<post>/lool/$1/ws became /cool/(.*)/ws$ pointing to wss://<host>:<post>/cool/$1/ws
  • /lool/adminws became /cool/adminws, pointing to wss://10.8.1.9:9980/cool/adminws behind the proxy
  • You guessed it, but /lool became /cool and the same happens behind the proxy

After fixing that and shoving the URL to my CODE server in the new “Office Online” administration tab for NC23 (which I assume you’ve done already since you’re getting that error instead of a 504) I can edit again, so I hope this helps.

5 Likes