Hello!
Could anyone give me some advices about my config, please?. I have Nextcloud working with Collabora running through docker. All is working ok with one instance, but now, I want run second instance of Collabora within one Nextcloud with other domain (other apache2 vhost).
Nextcloud config has two allowed domain:
-my1 domain com (apache2 vhost one)
-my2 domain com (apache2 vhost two)
In Nextcloud collabora url I set first domain - my1.domain.com
Working first instance collabora docker:
docker run -t -d -p 127.0.0.1:9980:9980 -e ‘domain=my1\.domain\.com’ --restart always --cap-add MKNOD collabora/code
Second not working instance Collabora docker:
docker run -t -d -p 127.0.0.1:9981:9980 -e ‘domain=my2\.domain\.com’ --restart always --cap-add MKNOD collabora/code
In ma vhost config I only changed port to 9981:
<VirtualHost *:443>
ServerAdmin email@email.com
ServerName my2domain com
DocumentRoot /var/www/mydomain
DirectoryIndex index.php index.html
SSLEngine on
SSLCertificateFile /etc/apache2/certificates/cert.crt
SSLCertificateKeyFile /etc/apache2/certificates/key.key
SSLCertificateChainFile /etc/apache2/certificates/ca.crt
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
<Directory /var/www/mydomain>
AllowOverride All
Satisfy Any
</Directory>
# Włączenie FPM.
<FilesMatch "\.php$">
SetHandler "proxy:fcgi://127.0.0.1:9000/"
</FilesMatch>
<IfModule mod_headers.c>
Header set Referrer-Policy "no-referrer"
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
</IfModule>
<IfModule mod_dav.c>
Dav off
</IfModule>
#############
# COLLABORA #
#############
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
SSLHonorCipherOrder on
# 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:9981/loleaflet retry=0
ProxyPassReverse /loleaflet https://127.0.0.1:9981/loleaflet
# WOPI discovery URL
ProxyPass /hosting/discovery https://127.0.0.1:9981/hosting/discovery retry=0
ProxyPassReverse /hosting/discovery https://127.0.0.1:9981/hosting/discovery
# Main websocket
ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9981/lool/$1/ws nocanon
# Admin Console websocket
ProxyPass /lool/adminws wss://127.0.0.1:9981/lool/adminws
# Download as, Fullscreen presentation and Image upload operations
ProxyPass /lool https://127.0.0.1:9981/lool
ProxyPassReverse /lool https://127.0.0.1:9981/lool
ErrorLog /var/www/logs/error.log
CustomLog /var/www/logsl/access.log combined
</VirtualHost>
Now, when I go to Nextcloud by my2.domain.com is ok, but when I run Collabora in first instance of docker logs I have:
No acceptable WOPI hosts found matching the target host [my2.domain.com] in config.
Why is not this appealing to the second instance?