ServerName {{ owncloud_domain }} Redirect permanent / https://{{ owncloud_domain }}/ ServerName {{ owncloud_domain }} SSLEngine On 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" Options +FollowSymLinks AllowOverride All Dav off SetEnv HOME /var/www/owncloud SetEnv HTTP_HOME /var/www/owncloud # just in case if .htaccess gets disabled Require all denied ## Please enable this manually, if needed. See also ## https://doc.owncloud.org/server/8.2/admin_manual/issues/index.html#apple-ios # Redirect 301 /.well-known/carddav /owncloud/remote.php/carddav # Redirect 301 /.well-known/caldav /owncloud/remote.php/caldav