<VirtualHost *:80> #ServerAdmin webmaster@localhost DocumentRoot /var/www/html/nextcloud/ <Directory /var/www/html/nextcloud/> Require all granted AllowOverride All Options FollowSymLinks MultiViews <IfModule mod_dav.c> Dav off </IfModule> </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined #LogLevel debug # PHP-FPM <FilesMatch "\.php$"> SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/" </FilesMatch> <Proxy "fcgi://localhost/"> </Proxy> </VirtualHost>