Geen omschrijving
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.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. 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. Options +FollowSymLinks
  15. AllowOverride All
  16. <IfModule mod_dav.c>
  17. Dav off
  18. </IfModule>
  19. SetEnv HOME /var/www/owncloud
  20. SetEnv HTTP_HOME /var/www/owncloud
  21. </Directory>
  22. <Directory "/var/www/owncloud/data/">
  23. # just in case if .htaccess gets disabled
  24. Require all denied
  25. </Directory>
  26. ## Please enable this manually, if needed. See also
  27. ## https://doc.owncloud.org/server/8.2/admin_manual/issues/index.html#apple-ios
  28. # Redirect 301 /.well-known/carddav /owncloud/remote.php/carddav
  29. # Redirect 301 /.well-known/caldav /owncloud/remote.php/caldav
  30. </VirtualHost>