Config Collabora Office on NextCloud 13 in FreeNAS 9.10.2-U6 ??

Status
Not open for further replies.

dnilgreb

Contributor
Joined
Mar 29, 2016
Messages
168
I have a NextCloud 13.0.4 instance running inside a jail in my FreeNAS 9.10.2-U6.
I had a lot of help from people on this forum in getting it going a couple of years ago. Been working great ever since.
Now I´d like to be able to edit and save Office-documents and the like, without having to download-edit-save-upload said document.

I found Collabora, which seems to be what I need. But I can´t quite get it set up. This is how far I´ve gotten:

I set up a new DNS, office.MYDOMAIN.eu and pointed it to the same IP as my NextCloud DNS.
I have installed a new Letsencrypt cert for office.MYDOMAIN.eu.
In NextCloud, I have set office.MYDOMAIN.eu as the server for Collabora.

I created a new.conf file named office.MYDOMAIN.eu.conf placed in /usr/local/etc/apache24/Includes.

Contents (EDIT: Replaced old one with sample config from collabora website):

<VirtualHost *:443>
ServerName office.MYDOMAIN.eu:443

SSLEngine on
SSLCertificateFile /usr/local/etc/letsencrypt/live/office.MYDOMAIN.eu/fullchain.pem

SSLCertificateKeyFile /usr/local/etc/letsencrypt/live/office.MYDOMAIN.eu/privkey.pem
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305...(very long row, shortened it)...
SSLHonorCipherOrder on

AllowEncodedSlashes NoDecode

SSLProxyEngine On
SSLProxyVerify None
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off

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>

Now, as I do service apache24 restart, I get this error:
Code:
Invalid command 'ProxyPreserveHost', perhaps misspelled or defined by a module not included in the server configuration

How to get past this? I see a lot of posts saying that you should have a2enmod installed, but I can´t seem to find anything by that name.
Is it called something else when running under FreeNAS / BSD?


When I try to open a .doc file I get an "Internt serverfel" error which is in swedish and would translate to "Internal server error". Unsure what the message is in english exactly.
I can imagine I have a lot left to do, but I have no clue what. If anyone would take the time and help out, that would be AWESOME!
 
Last edited:

dnilgreb

Contributor
Joined
Mar 29, 2016
Messages
168
Trying further, I went into /usr/local/etc/apache24/httpd.conf and activated these modules:

Code:
LoadModule proxy_html_module libexec/apache24/mod_proxy_html.so
LoadModule proxy_module libexec/apache24/mod_proxy.so
LoadModule proxy_connect_module libexec/apache24/mod_proxy_connect.so
LoadModule proxy_http_module libexec/apache24/mod_proxy_http.so
LoadModule xml2enc_module libexec/apache24/mod_xml2enc.so


The ProxyPreserveHost error went away, and apache seems happy when starting. I do get this:
Code:
WARNING: number of probes fixed does not match the number of defined probes (12 != 13, respectively)
WARNING: some probes might not fire or your program might crash

Is that important?

What is missing? Anyone?
 
D

dlavigne

Guest
Were you able to resolve this?

If not, it may be because you are running an older version.
 

dnilgreb

Contributor
Joined
Mar 29, 2016
Messages
168
No, I have not resolved this. And yes, the issue is that I am running 9.10 still. I´m a bit reluctant towards upgrading, but I think I might once 11.2 is in place. But i was hoping that this could be done even though I´m not running the latest version...
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
Status
Not open for further replies.
Top