diff --git a/modules/setup/library/Setup/Webserver/Apache.php b/modules/setup/library/Setup/Webserver/Apache.php index eab908104..bb846f98b 100644 --- a/modules/setup/library/Setup/Webserver/Apache.php +++ b/modules/setup/library/Setup/Webserver/Apache.php @@ -18,6 +18,7 @@ Alias {urlPath} "{documentRoot}" # Remove comments if you want to use PHP FPM and your Apache version is older than 2.4 # # # Forward PHP requests to FPM +# SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 # # ProxyPassMatch "fcgi://127.0.0.1:9000/{documentRoot}/$1" # @@ -65,6 +66,7 @@ Alias {urlPath} "{documentRoot}" # is greater than or equal to 2.4 # = 2.4> # # Forward PHP requests to FPM +# SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 # # SetHandler "proxy:fcgi://127.0.0.1:9000" # ErrorDocument 503 {urlPath}/error_unavailable.html diff --git a/packages/files/apache/icingaweb2.conf b/packages/files/apache/icingaweb2.conf index 428a094bc..da8c56572 100644 --- a/packages/files/apache/icingaweb2.conf +++ b/packages/files/apache/icingaweb2.conf @@ -3,6 +3,7 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public" # Remove comments if you want to use PHP FPM and your Apache version is older than 2.4 # # # Forward PHP requests to FPM +# SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 # # ProxyPassMatch "fcgi://127.0.0.1:9000/{documentRoot}/$1" # @@ -50,6 +51,7 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public" # is greater than or equal to 2.4 # = 2.4> # # Forward PHP requests to FPM +# SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 # # SetHandler "proxy:fcgi://127.0.0.1:9000" # ErrorDocument 503 {urlPath}/error_unavailable.html diff --git a/packages/files/apache/icingaweb2.fpm.conf b/packages/files/apache/icingaweb2.fpm.conf index 9f01c214b..8d5b9db71 100644 --- a/packages/files/apache/icingaweb2.fpm.conf +++ b/packages/files/apache/icingaweb2.fpm.conf @@ -2,6 +2,7 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public" # Forward PHP requests to FPM + SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 ProxyPassMatch "fcgi://127.0.0.1:9000/usr/share/icingaweb2/public/$1" @@ -47,6 +48,7 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public" = 2.4> # Forward PHP requests to FPM + SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 SetHandler "proxy:fcgi://127.0.0.1:9000" ErrorDocument 503 /icingaweb2/error_unavailable.html