VirtualHost configuration:
*:443 other-40.umwelt-campus. de (/etc/apache2/sites-enabled/default-ssl.conf:2)
*:80 is a NameVirtualHost
default server myDigitalHome.umwelt-campus. de (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost myDigitalHome.umwelt-campus. de (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost other-40.umwelt-campus. de (/etc/apache2/sites-enabled/office.conf:1)
or to safe you all the typing choose one of my playbooks:
the docker once should also work with selfsigned certificates. the one without docker might not work. i have to check it.
in your vhost definiton the reverse proxy config to redirect from port 80 to 9980 is missing. why you add a selfsigned certificate to port 80?
do you run everything on one box or two different?
I’m using a self-signed certificate and that works just fine for me. Letsencrypt threw an error. But the main problem is, as described, the collabora start page ain’t showing.
Okay, so you should enable logging for your lool container and take a look in the nc error log and the lool error log.
For your lool container access the bash shell and modify /etc/loolwsd/loolwsd.xml as needed. For your nc instance you can find this in data/nextcloud.log.
Nano is not installed inside the container. You can use “edit” instead but if you have root rights - i assumed this - you should install a coupled of packages for help testing and modify you favoured.
Modify /etc/loolwsd/loolwsd.xml should also be do this way:
@ralfi Okay, I got an Idea where my problem is. I now can access the collabora-service but Nextcloud can’t connect to it. “Collabora cant be loaded”. So there must be a problem with my vHost settings?
<VirtualHost *:80>
ServerAdmin mail@example.de
ServerName other-40.umwelt-campus.de
# 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://localhost: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>
Please paste a little bit (first 3-4 lines of output) from http://127.0.0.1:9980/hosting/discovery
And take a look at the nextcloud log file, it must be there. Please take a deeper look at the docs.
Your config never do work because you have a reverse proxy for the lool server but no https access to your nextcloud instance. I dont know the environment of your instance so you must give us a little more info, such as LAN / IP structure pic.
If I look at “nextcloud/data/nextcloud.log” it is empty. If I type docker logs --details nextcloudcontainername I get just something like:
127.0.0.1 - - [23/May/2019:11:11:17 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.25 (Debian) PHP/7.3.5 (internal dummy connection)"
172.25.0.1 - - [23/May/2019:11:11:34 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 2116 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36"
172.25.0.1 - - [23/May/2019:11:12:04 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 2116 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36"
143.93.46.40 - - [23/May/2019:11:12:25 +0000] "\x16\x03\x01\x02" 400 0 "-" "-"
143.93.46.40 - - [23/May/2019:11:12:25 +0000] "\x16\x03\x01" 400 0 "-" "-"
143.93.46.40 - - [23/May/2019:11:12:25 +0000] "\x16\x03\x01\x02" 400 0 "-" "-"
143.93.46.40 - - [23/May/2019:11:12:25 +0000] "\x16\x03\x01\x02" 400 0 "-" "-"
172.25.0.1 - - [23/May/2019:11:12:34 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 2116 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36"
[Thu May 23 11:12:49.461813 2019] [mpm_prefork:notice] [pid 1] AH00169: caught SIGTERM, shutting down
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.25.0.3. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.25.0.3. Set the 'ServerName' directive globally to suppress this message
[Thu May 23 16:03:22.268078 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.3.5 configured -- resuming normal operations
[Thu May 23 16:03:22.268115 2019] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
So my “other-40.umwelt-campus.de” is running on my server on " 143.93.46.40". When trying to access nextcloud over other-40.umwelt-campus.de:8080 I get an denied access cause of safety.
The domain is maintaiend externally. Could it be a not opened port on the domain?
Could the problem be, that I’m not accessing nextcloud over https but I do access collabora over it?
And is it possible to call collabora on localhost over nextcloud by handling:
“URL (and Port) of Collabora Online-Server” to https://localhost:9980 ?
Atm I’m getting: Collabora Online should use the same protocol as the server installation.
It is working on my server, yea. I also can reach it and it’s giving an “ok” response on port 9980. The problem is just the connection with nextcloud as I mentioned a oost above.
If it is possible to connect it with localhost:9980 I’d do that too.