Hi there,
I am running Nextcloud 18 on a Ubuntu 18.04.4 system. I am using collabra with docker on this system.
Up to now, everything works fine. But now, I have a new thing that I want to set up.
Till now, I was only having one domain “foo.com” with a docker image for collabra and all works fine.
Now, what I want to have is a second domain “bar.com” on the same system using a second docker instance for collabra.
Here is the situation at the moment:
-
for domain “foo.com” (domain A):
I use the subdomain “office.foo.com” for docker and all works fine. When I log into Nextcloud and open an existing or create a new Collabra document, it opens correctly. So no problem for domain A at all. -
for domain “bar.com” (domain B):
Here, no matter what I do, I get an “unauthorized WOPI-access” error.
To find the cause, I give a few informations:
- docker start of domain
docker run -t -d -p 127.0.0.1:9990:9980 -e 'domain=office\\.bar\\com' --restart always --name bar-office --cap-add MKNOD collabora/code
-
Configuration in admin interface of collabra app in nextcloud:
URL (und Port) des Collabora Online-Servers
https://office.bar.com -
Apache virtual host file for it:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName office.bar.com
ServerAdmin webmaster@domain.xx
# Encoded slashes need to be allowed
AllowEncodedSlashes NoDecode
# Container uses a unique non-signed certificate
SSLProxyEngine On
SSLProxyVerify None
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
# keep the host
ProxyPreserveHost On
# static html, js, images, etc. served from loolwsd
# loleaflet is the client part of LibreOffice Online
ProxyPass /loleaflet https://127.0.0.1:9990/loleaflet retry=0
ProxyPassReverse /loleaflet https://127.0.0.1:9990/loleaflet
# WOPI discovery URL
ProxyPass /hosting/discovery https://127.0.0.1:9990/hosting/discovery retry=0
ProxyPassReverse /hosting/discovery https://127.0.0.1:9990/hosting/discovery
# Main websocket
ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9990/lool/$1/ws nocanon
# Admin Console websocket
ProxyPass /lool/adminws wss://127.0.0.1:9990/lool/adminws
# Download as, Fullscreen presentation and Image upload operations
ProxyPass /lool https://127.0.0.1:9990/lool
ProxyPassReverse /lool https://127.0.0.1:9990/lool
# Endpoint with information about availability of various features
ProxyPass /hosting/capabilities https://127.0.0.1:9990/hosting/capabilities retry=0
ProxyPassReverse /hosting/capabilities https://127.0.0.1:9990/hosting/capabilities
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/bar.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/bar.com/privkey.pem
</VirtualHost>
</IfModule>
Can somebody please help me solve this? If possible at all?