Problem with Collabora with SSL and custom port

Nextcloud version 11.0.3:
Operating system and version Ubuntu 16.04:
Apache version Apache/2.4.18 (Ubuntu)
PHP 7.0.15-0ubuntu0.16.04.4 (cli) ( NTS )
Is this the first time you’ve seen this error?: Yes

The issue you are facing:

I have Collabora configured as ssl port 9980 on my edge server, as the default SSL terminator there does not support WebSocket.

I have configured Nextcloud to use https://office.example.com:9980 as the URL.

Apache logs this:

office.example.com:443 192.168.1.124 - - [16/May/2017:20:24:41 +0300] “GET /hosting/discovery HTTP/1.1” 500 3668 “-” “ownCloud Server Crawler”

The output of your Nextcloud log in Admin > Logging:

  • Nothing.

Q: Why does it try to access my port 443 which leads to Nextcloud in my VM and not Collabora Docker instance? I end to “Access Denied” page in Nextcloud.


Remember, this information may be requested if it isn’t supplied; for fastest response please provide as much as you can :heart: Feel free to use a pastebin service, otherwise log files can be indented with 4 spaces on each line to present them in a friendlier way on the forum.

==> /var/log/apache2/error.log <==
[Tue May 16 21:41:36.274109 2017] [proxy:error] [pid 7473] (502)Unknown error 502: [client 192.168.1.124:38252] AH01084: pass request body failed to 127.0.0.1:9980 (127.0.0.1)
[Tue May 16 21:41:36.274540 2017] [proxy:error] [pid 7473] [client 192.168.1.124:38252] AH00898: Error during SSL Handshake with remote server returned by /hosting/discovery
[Tue May 16 21:41:36.274990 2017] [proxy_http:error] [pid 7473] [client 192.168.1.124:38252] AH01097: pass request body failed to 127.0.0.1:9980 (127.0.0.1) from 192.168.1.124 ()

==> /var/log/apache2/other_vhosts_access.log <==
office.bitwell.fi:443 192.168.1.124 - - [16/May/2017:21:41:36 +0300] “GET /hosting/discovery HTTP/1.1” 500 3669 “-” “ownCloud Server Crawler”

Pastebin for my Apache config for Collabora.

https://pastebin.ca/3813500