Alias /nextcloud "/var/www/nextcloud/"
Alias /owncloud "/var/www/nextcloud/"
Options +FollowSymLinks
AllowOverride All
Dav off
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
# 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