Running Collabora without other/subdomain?

Hello,

i installed the collabora (with CODE) on my server (the same with nextcloud running).
My problem: i am using deSEC for dyndns and it is not possible there to make a subdomain.
Would it be possible to install/use collaborar with the same domain? Maybe with a special port nr.?
For SSL i am using letscrypt.

Thank you!

Hello,

I think that you could make your apache virtual host listening on 9981 instead of 443 by doing those steps :

  • Make apache listen on port 9981 : add “Listen 9981” to /etc/apache2/ports.conf
  • Change your virtual host parameters in apache in your collabora.conf or whatever file:
    "<VirtualHost *:9981>
    ServerName domain.com:9981"
  • Restart apache “service apache2 restart”
  • Set your collabora app in nextcloud to bind to https://domain.com:9981
  • Add a rule to your firewall if you have one “ufw allow 9981/tcp”

The following setup works for me but I have another problem to solve before making collabora work :joy:

Thank you a lot!
But it is not working right now - i always got this message.
SSL should work - i have a working letsencrypt ssl for mydomain.de (nextcloud) and then should mydomain.de:9981 also work right?

GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to mydomain.de port 9981: Connection timed out

Libreoffice.conf

<VirtualHost *:9981>
ServerName mydomain.de:9981

# SSL configuration, you may want to take the easy route instead and use Lets Encrypt!
SSLEngine on
SSLCertificateFile	/etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
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:9980/loleaflet retry=0
ProxyPassReverse    /loleaflet https://127.0.0.1:9980/loleaflet

# WOPI discovery URL
ProxyPass           /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0
ProxyPassReverse    /hosting/discovery https://127.0.0.1:9980/hosting/discovery

# Main websocket
ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon

# Admin Console websocket
ProxyPass   /lool/adminws wss://127.0.0.1:9980/lool/adminws

# Download as, Fullscreen presentation and Image upload operations
ProxyPass           /lool https://127.0.0.1:9980/lool
ProxyPassReverse    /lool https://127.0.0.1:9980/lool
</VirtualHost>