Няма описание
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.2KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <VirtualHost *:80>
  2. ServerName {{ owncloud_domain }}
  3. Redirect permanent / https://{{ owncloud_domain }}/
  4. </VirtualHost>
  5. <VirtualHost *:443>
  6. ServerName {{ owncloud_domain }}
  7. Include /etc/apache2/ssl.conf
  8. DocumentRoot /var/www/owncloud
  9. Options -Indexes
  10. ErrorLog /var/log/apache2/owncloud.info-error_log
  11. CustomLog /var/log/apache2/owncloud.info-access_log common
  12. php_value session_cache_limiter "public"
  13. <Directory /var/www/owncloud>
  14. AllowOverride All
  15. Order allow,deny
  16. allow from all
  17. DirectoryIndex index.php
  18. SetOutputFilter DEFLATE
  19. ExpiresActive On
  20. ExpiresDefault "access plus 2 weeks"
  21. ExpiresByType text/css "access plus 2 weeks"
  22. ExpiresByType image/svg+xml "access plus 2 weeks"
  23. ExpiresByType image/png "access plus 2 weeks"
  24. ExpiresByType text/javascript "access plus 2 weeks"
  25. ExpiresByType application/x-javascript "access plus 2 weeks"
  26. ExpiresByType application/javascript "access plus 2 weeks"
  27. ExpiresByType application/x-icon "access plus 2 weeks"
  28. Header set Cache-Control "public"
  29. </Directory>
  30. </VirtualHost>