Advertisement
Guest User

apache2 nextcloud config

a guest
Mar 25th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <VirtualHost *:443>
  2. DocumentRoot /var/www/nextcloud
  3. ServerName ***
  4. Protocols h2 http/1.1
  5. <IfModule mod_headers.c>
  6. Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"
  7. </IfModule>
  8. ServerAdmin ***
  9. ErrorLog /var/log/apache2/error.log
  10. CustomLog /var/log/apache2/access.log combined
  11. <Directory "/var/www/nextcloud">
  12. AllowOverride All
  13. allow from all
  14. Options FollowSymlinks
  15. Require all granted
  16. SetEnv MOD_X_SENDFILE_ENABLED 1
  17. XSendFile On
  18. XSendFilePath /home/nextcloud
  19. </Directory>
  20. SSLEngine on
  21. SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2
  22. SSLCertificateFile /etc/letsencrypt/live/***/cert.pem
  23. SSLCACertificateFile /etc/letsencrypt/live/***/chain.pem
  24. SSLCertificateKeyFile /etc/letsencrypt/live/***/privkey.pem
  25.  
  26. SetOutputFilter BROTLI_COMPRESS
  27. SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-brotli
  28.  
  29. RedirectMatch 403 /apps/rainloop/app/data/.
  30. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement