NGINX reverse proxy: Unauthorized WOPI host

Sorry if I wasn’t clear enough.

  • Ubuntu 18.04 is installed directly on the server SSD (so no VM involved)
  • Nextcloud 17.0.4 is directly installed on the Ubuntu host in /var/www/owncloud (historical reasons, I migrated from ownCloud) and it’s Apache http server is accessed via an nginx HTTPS reverse proxy
  • Nginx was installed via apt-get on the host
  • Collabora is used on the same Ubuntu host via the official docker image
  • Collabora is accessed via the same nginx https reverse proxy but on a different port (449) than Nextcloud because I cannot use subdomains

The solution to my problem was this: NGINX reverse proxy: Unauthorized WOPI host