Iāve been banging my head against the wall here for over a week and I canāt seem to figure out what Iām missing here. I have NextCloud up and running and itās running great. However, when I try to add my collabora instance, this is where it gets messy.
Hereās my setup:
NextCloud Server:
- external domain: cloud.domain.net
- internal IP: 10.10.2.28
- OS CentOS 7
Collabora Server:
- external domain: office.domain.net
- internal IP: 10.10.2.32
- OS: Ubuntu 16.04
How I set it up:
Iām running this from home and I have a single external IP address. I have the appropriate ports forwarded and I donāt think thatās my issue.
For the NextCloud I followed a different walkthrough, but this is what Iām using as a baseline for Collabora:
I used LetsEncrypt and Certbot for the nextcloud server and that worked fine. When I go through the mentioned walkthrough, I make it to the SSL/proxy part and then it all stops working.
I have tried having the proxy info on both the nextcloud server and the collabora server without any success. I believe that Iām going to have to have the proxy stuff on the nextcloud server since thatās the one the router is pointing to directly.
Hereās the .conf file I have on my nextcloud server, and this is a separate conf file from the working nextcloud conf file:
<VirtualHost *:443>
ServerName office.domain.net
SSL configuration, you may want to take the easy route instead and use Lets Encrypt!
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/cloud.domain.net/cert.pem
SSLCertificateChainFile /etc/letsencrypt/live/cloud.domain.net/privkey.pem
SSLCertificateKeyFile /etc/letsencrypt/live/cloud.domain.net/chain.pem
Include /etc/letsencrypt/options-ssl-apache.confSSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-S$
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://10.10.2.32:9980/loleaflet retry=0
ProxyPassReverse /loleaflet https://10.10.2.32:9980/loleaflet
WOPI discovery URL
ProxyPass /hosting/discovery https://10.10.2.32:9980/hosting/discovery retry=0
ProxyPassReverse /hosting/discovery https://10.10.2.32:9980/hosting/discovery
Main websocket
ProxyPassMatch ā/lool/(.*)/ws$ā wss://10.10.2.32:9980/lool/$1/ws nocanon
Admin Console websocket
ProxyPass /lool/adminws wss://office.domain.net:9980/lool/adminws
keep the host
ProxyPreserveHost On
static html, js, images, etc. served from loolwsd
loleaflet is the client part of LibreOffice Online
ProxyPass /loleaflet https://10.10.2.32:9980/loleaflet retry=0
ProxyPassReverse /loleaflet https://10.10.2.32:9980/loleaflet
The referenced SSL certificate files are the same ones used by the nextcloud instance.
Thanks a lot for your help!!