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

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <VirtualHost *:80>
  2. ServerName {{ nextcloud_subdomain }}.{{ item.name }}
  3. Redirect temp / 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. LogLevel warn
  11. ErrorLog /var/log/apache2/nextcloud.info-error_log
  12. CustomLog /var/log/apache2/nextcloud.info-access_log common
  13. php_value session_cache_limiter "public"
  14. <Directory "/var/www/nextcloud">
  15. Options +FollowSymLinks
  16. AllowOverride All
  17. <IfModule mod_dav.c>
  18. Dav off
  19. </IfModule>
  20. SetEnv HOME /var/www/nextcloud
  21. SetEnv HTTP_HOME /var/www/nextcloud
  22. </Directory>
  23. <Directory "/var/www/nextcloud/data/">
  24. # just in case if .htaccess gets disabled
  25. Require all denied
  26. </Directory>
  27. ## Please enable this manually, if needed. See also
  28. ## https://doc.owncloud.org/server/8.2/admin_manual/issues/index.html#apple-ios
  29. Redirect 301 /.well-known/carddav /remote.php/carddav
  30. Redirect 301 /.well-known/caldav /remote.php/caldav
  31. </VirtualHost>