Advertisement
Guest User

Untitled

a guest
Jun 12th, 2019
5,993
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. <IfModule mod_ssl.c>
  2. <VirtualHost *:443>
  3.  
  4. ServerName your.fq.dn
  5. DocumentRoot "/var/www/nextcloud/"
  6. ServerAdmin webmaster@yourdomain.com
  7.  
  8. SSLEngine on
  9. SSLCertificateFile /path/to/ssl/cert
  10. SSLCertificateKeyFile /path/to/private/key
  11. SSLCertificateChainFile /path/to/chain/cert
  12.  
  13. # Uncomment the following directive when using client certificate authentication
  14. #SSLCACertificateFile
  15.  
  16. SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
  17. SSLCipherSuite ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-G56:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
  18. SSLHonorCipherOrder on
  19. SSLCompression off
  20. SSLSessionTickets off
  21.  
  22. # HSTS (mod_headers is required) (15768000 seconds = 6 months)
  23. Header always set Strict-Transport-Security "max-age=15768000"
  24.  
  25. <Directory /var/www/nextcloud/>
  26. Options +FollowSymlinks
  27. AllowOverride All
  28.  
  29. <IfModule mod_dav.c>
  30. Dav off
  31. </IfModule>
  32.  
  33. SetEnv HOME /var/www/nextcloud
  34. SetEnv HTTP_HOME /var/www/nextcloud
  35. </Directory>
  36.  
  37. </VirtualHost>
  38. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement