Advertisement
Guest User

Untitled

a guest
Sep 29th, 2018
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. NameVirtualHost *:443
  2. <VirtualHost office.mydomain.com:443>
  3.   ServerName office.mydomain.com
  4.  
  5.   # SSL configuration, you may want to take the easy route instead and use Lets Encrypt!
  6.   SSLEngine on
  7.   SSLCertificateFile    /etc/letsencrypt/live/mydomain.com/fullchain.pem
  8.   SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.com/privkey.pem
  9.   SSLProtocol             all -SSLv2 -SSLv3
  10.  
  11.  
  12. 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-$
  13. SSLHonorCipherOrder on
  14.  
  15.   # Encoded slashes need to be allowed
  16.   AllowEncodedSlashes NoDecode
  17.  
  18.   # Container uses a unique non-signed certificate
  19.   SSLProxyEngine On
  20.   SSLProxyVerify None
  21.   SSLProxyCheckPeerCN Off
  22.   SSLProxyCheckPeerName Off
  23.  
  24.   # keep the host
  25.   ProxyPreserveHost On
  26.  
  27.   # static html, js, images, etc. served from loolwsd
  28.   # loleaflet is the client part of LibreOffice Online
  29.   ProxyPass           /loleaflet https://office.mydomain.com:9980/loleaflet retry=0
  30.   ProxyPassReverse    /loleaflet https://office.mydomain.com:9980/loleaflet
  31.  
  32.   # WOPI discovery URL
  33.   ProxyPass           /hosting/discovery https://office.mydomain.com:9980/hosting/discovery retry=0
  34.   ProxyPassReverse    /hosting/discovery https://office.mydomain.com:9980/hosting/discovery
  35.  
  36.   # Main websocket
  37.   ProxyPassMatch "/lool/(.*)/ws$" ws://office.mydomain.com:9980/lool/$1/ws nocanon
  38.  
  39.   # Admin Console websocket
  40.   ProxyPass   /lool/adminws ws://office.mydomain.com:9980/lool/adminws
  41.  
  42.   # Download as, Fullscreen presentation and Image upload operations
  43.   ProxyPass           /lool https://office.mydomain.com:9980/lool
  44.   ProxyPassReverse    /lool https://office.mydomain.com:9980/lool
  45. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement