Advertisement
Guest User

Untitled

a guest
Oct 26th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1.  
  2.  
  3. <VirtualHost *:80>
  4. ServerAdmin "my_email"
  5. DocumentRoot "/srv/http"
  6. ServerName "my_domain_name"
  7. ErrorLog "/var/log/httpd/my_domain-error_log"
  8. CustomLog "/var/log/httpd/my_domain-access_log" common
  9. RewriteEngine on
  10. RewriteCond %{SERVER_NAME} =my_domain
  11. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  12.  
  13. # Encoded slashes need to be allowed
  14. AllowEncodedSlashes NoDecode
  15.  
  16. # Container uses a unique non-signed certificate
  17. SSLProxyEngine On
  18. SSLProxyVerify None
  19. SSLProxyCheckPeerCN Off
  20. SSLProxyCheckPeerName Off
  21.  
  22. # keep the host
  23. ProxyPreserveHost On
  24.  
  25. # static html, js, images, etc. served from loolwsd
  26. # loleaflet is the client part of LibreOffice Online
  27. ProxyPass /loleaflet https://127.0.0.1:9980/loleaflet retry=0
  28. ProxyPassReverse /loleaflet https://127.0.0.1:9980/loleaflet
  29.  
  30. # WOPI discovery URL
  31. ProxyPass /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0
  32. ProxyPassReverse /hosting/discovery https://127.0.0.1:9980/hosting/discovery
  33.  
  34. # Main websocket
  35. ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon
  36.  
  37. # Admin Console websocket
  38. ProxyPass /lool/adminws wss://127.0.0.1:9980/lool/adminws
  39.  
  40. # Download as, Fullscreen presentation and Image upload operations
  41. ProxyPass /lool https://127.0.0.1:9980/lool
  42. ProxyPassReverse /lool https://127.0.0.1:9980/lool
  43. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement