12345678910111213141516171819202122232425262728293031323334353637383940 |
- <VirtualHost *:80>
- ServerName {{ owncloud_domain }}
-
- Redirect permanent / https://{{ owncloud_domain }}/
- </VirtualHost>
-
- <VirtualHost *:443>
- ServerName {{ owncloud_domain }}
-
- Include /etc/apache2/ssl.conf
-
- 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"
-
- <Directory /var/www/owncloud>
- 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"
- </Directory>
- </VirtualHost>
|