Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

etc_apache2_sites-available_owncloud.j2 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <VirtualHost *:80>
  2. ServerName {{ owncloud_domain }}
  3. Redirect permanent / https://{{ owncloud_domain }}/
  4. </VirtualHost>
  5. <VirtualHost *:443>
  6. ServerName {{ owncloud_domain }}
  7. SSLEngine on
  8. SSLProtocol ALL -SSLv2 -SSLv3
  9. SSLHonorCipherOrder On
  10. SSLCompression off
  11. SSLUseStapling On
  12. SSLStaplingResponderTimeout 5
  13. SSLStaplingReturnResponderErrors off
  14. SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK
  15. SSLCertificateFile /etc/ssl/certs/wildcard_public_cert.crt
  16. SSLCertificateKeyFile /etc/ssl/private/wildcard_private.key
  17. SSLCACertificateFile /etc/ssl/certs/wildcard_ca.pem
  18. Header add Strict-Transport-Security "max-age=15768000; includeSubdomains"
  19. DocumentRoot /var/www/owncloud
  20. Options -Indexes
  21. ErrorLog /var/log/apache2/owncloud.info-error_log
  22. CustomLog /var/log/apache2/owncloud.info-access_log common
  23. php_value session_cache_limiter "public"
  24. <Directory /var/www/owncloud>
  25. AllowOverride All
  26. Order allow,deny
  27. allow from all
  28. DirectoryIndex index.php
  29. SetOutputFilter DEFLATE
  30. ExpiresActive On
  31. ExpiresDefault "access plus 2 weeks"
  32. ExpiresByType text/css "access plus 2 weeks"
  33. ExpiresByType image/svg+xml "access plus 2 weeks"
  34. ExpiresByType image/png "access plus 2 weeks"
  35. ExpiresByType text/javascript "access plus 2 weeks"
  36. ExpiresByType application/x-javascript "access plus 2 weeks"
  37. ExpiresByType application/javascript "access plus 2 weeks"
  38. ExpiresByType application/x-icon "access plus 2 weeks"
  39. Header set Cache-Control "public"
  40. </Directory>
  41. </VirtualHost>