ServerName {{ owncloud_domain }}
Redirect permanent / https://{{ owncloud_domain }}/
ServerName {{ owncloud_domain }}
SSLEngine On
DocumentRoot /var/www/owncloud
Options -Indexes
ErrorLog /var/log/apache2/owncloud.info-error_log
CustomLog /var/log/apache2/owncloud.info-access_log common
php_value session_cache_limiter "public"
AllowOverride All
Order allow,deny
allow from all
DirectoryIndex index.php
SetOutputFilter DEFLATE
ExpiresActive On
ExpiresDefault "access plus 2 weeks"
ExpiresByType text/css "access plus 2 weeks"
ExpiresByType image/svg+xml "access plus 2 weeks"
ExpiresByType image/png "access plus 2 weeks"
ExpiresByType text/javascript "access plus 2 weeks"
ExpiresByType application/x-javascript "access plus 2 weeks"
ExpiresByType application/javascript "access plus 2 weeks"
ExpiresByType application/x-icon "access plus 2 weeks"
Header set Cache-Control "public"