#beginConf

ErrorLog ${APACHE_LOG_DIR}/SITEname_error.log
#CustomLog ${APACHE_LOG_DIR}/SITEname_custom.log combined

DirectoryIndex index.php index.html index.htm
DocumentRoot /var/www/DOMAINname/html

Redirect 301 /.well-known/carddav /remote.php/dav
Redirect 301 /.well-known/caldav /remote.php/dav

<Directory /var/www/DOMAINname/html>
  Require all granted
  AllowOverride All
  Options FollowSymLinks MultiViews
  Satisfy Any
  <IfModule mod_dav.c>
    Dav off
  </IfModule>

</Directory>

<Directory "/var/www/DOMAINname/html/data/">
    Require all denied
</Directory>

<FilesMatch \.php$>
    SetHandler "proxy:unix:/var/run/php/phpPHPver-fpm-SITEname.sock|fcgi://localhost"
</FilesMatch>

#endConf