Fix device enrollment with mod_fcgi

The Nextcloud application requires access to the Authorization header for device enrollment.

Without forwarding the Authorization header to php-fpm from Apache, all device enrollment will fail with the auth flow v2.
This commit is contained in:
Bernard Spil
2020-09-19 13:58:17 +02:00
committed by Ferdinand Thiessen
parent 39f0d5f944
commit 0e98ef8a1b

View File

@@ -122,6 +122,14 @@ Additional Apache configurations
a2enmod setenvif
and apply the following modifications the configuration::
ProxyFCGIBackendType FPM
<FilesMatch remote.php>
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
</FilesMatch>
* You must disable any server-configured authentication for Nextcloud, as it
uses Basic authentication internally for DAV services. If you have turned on
authentication on a parent folder (via e.g. an ``AuthType Basic``