diff --git a/nextcloud-defaults.inc b/nextcloud-defaults.inc
index c5d4478..c9ceec5 100644
--- a/nextcloud-defaults.inc
+++ b/nextcloud-defaults.inc
@@ -21,6 +21,9 @@ ErrorDocument 404 /nextcloud/core/templates/404.php
RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
+
+ SetHandler "proxy:unix:/run/php-fpm/nextcloud.sock|fcgi://localhost"
+