mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
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:
committed by
Ferdinand Thiessen
parent
39f0d5f944
commit
0e98ef8a1b
@@ -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``
|
||||
|
||||
Reference in New Issue
Block a user