No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_apache2_sites-available_owncloud.j2 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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
  9. SSLHonorCipherOrder On
  10. SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AES:RSA+3DES:!ADH:!AECDH:!MD5:!DSS
  11. SSLCertificateFile /etc/ssl/certs/wildcard_public_cert.crt
  12. SSLCertificateKeyFile /etc/ssl/private/wildcard_private.key
  13. SSLCACertificateFile /etc/ssl/certs/wildcard_ca.pem
  14. Header add Strict-Transport-Security "max-age=15768000; includeSubdomains"
  15. DocumentRoot /var/www/owncloud
  16. Options -Indexes
  17. ErrorLog /var/log/apache2/owncloud.info-error_log
  18. CustomLog /var/log/apache2/owncloud.info-access_log common
  19. php_value session_cache_limiter "public"
  20. <Directory /var/www/owncloud>
  21. AllowOverride All
  22. Order allow,deny
  23. allow from all
  24. DirectoryIndex index.php
  25. SetOutputFilter DEFLATE
  26. ExpiresActive On
  27. ExpiresDefault "access plus 2 weeks"
  28. ExpiresByType text/css "access plus 2 weeks"
  29. ExpiresByType image/svg+xml "access plus 2 weeks"
  30. ExpiresByType image/png "access plus 2 weeks"
  31. ExpiresByType text/javascript "access plus 2 weeks"
  32. ExpiresByType application/x-javascript "access plus 2 weeks"
  33. ExpiresByType application/javascript "access plus 2 weeks"
  34. ExpiresByType application/x-icon "access plus 2 weeks"
  35. Header set Cache-Control "public"
  36. </Directory>
  37. </VirtualHost>