DocumentRoot "/usr/local/www/apache24/data/nextcloud" ServerName yourhostnamehere ServerAdmin admin@example.com RewriteEngine On RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] SetHandler "proxy:fcgi://localhost:9000" DirectoryIndex /index.php index.php AllowOverride all