Hallo,
I’ve got problems to get my Apache reverse proxy to run as expected: I’ve compiled LIbreOffice Online using the script provided by husisusi. Loolwsd seems to run as expected but sadly I’ve got problems with my apache reverse proxy configuration. I can for example access the site /hosting/discovery
by not using the proxy (e.g. https://office.domain.com:9980/hosting/discovery
).
I can’t access the site if I’m using the url https://office.domain.com/hosting/discovery
. If I’m using this url I’m getting a page of my blog which states that this page is not available.
My activated apache vhosts are the follwing for the proxy settings:
office.domain.com.conf:
<VirtualHost *:80> ServerName office.domain.com Redirect / https://office.domain.com </VirtualHost>
office.domain.com-le.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName office.domain.com
# SSL configuration, you may want to take the easy route instead and use Lets Encrypt! SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/www.domain.com/cert.pem SSLCertificateChainFile /etc/letsencrypt/live/www.domain.com/chain.pem SSLCertificateKeyFile /etc/letsencrypt/live/www.domain.com/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf
SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-EC$ 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> </IfModule>
Sadly I’ve got no idea what I’m doing wrong. Can someone help me?