Sin descripción
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_nextcloud.j2 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <VirtualHost *:80>
  2. ServerName {{ nextcloud_subdomain }}.{{ item.name }}
  3. Redirect permanent / https://{{ nextcloud_subdomain }}.{{ item.name }}/
  4. </VirtualHost>
  5. <VirtualHost *:443>
  6. ServerName {{ nextcloud_subdomain }}.{{ item.name }}
  7. SSLEngine On
  8. DocumentRoot /var/www/nextcloud
  9. Options -Indexes
  10. ErrorLog /var/log/apache2/nextcloud.info-error_log
  11. CustomLog /var/log/apache2/nextcloud.info-access_log common
  12. php_value session_cache_limiter "public"
  13. <Directory "/var/www/nextcloud">
  14. Options +FollowSymLinks
  15. AllowOverride All
  16. <IfModule mod_dav.c>
  17. Dav off
  18. </IfModule>
  19. SetEnv HOME /var/www/nextcloud
  20. SetEnv HTTP_HOME /var/www/nextcloud
  21. </Directory>
  22. <Directory "/var/www/nextcloud/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 /remote.php/carddav
  29. Redirect 301 /.well-known/caldav /remote.php/caldav
  30. </VirtualHost>