diff --git a/modules/setup/library/Setup/Webserver.php b/modules/setup/library/Setup/Webserver.php index 4de5be03f..145a3c9a1 100644 --- a/modules/setup/library/Setup/Webserver.php +++ b/modules/setup/library/Setup/Webserver.php @@ -39,6 +39,13 @@ abstract class Webserver */ protected $fpmUri; + /** + * Enable to pass requests to FPM + * + * @var bool + */ + protected $enableFpm = false; + /** * Create instance by type name * diff --git a/modules/setup/library/Setup/Webserver/Apache.php b/modules/setup/library/Setup/Webserver/Apache.php index 1a36baebb..57c8513a6 100644 --- a/modules/setup/library/Setup/Webserver/Apache.php +++ b/modules/setup/library/Setup/Webserver/Apache.php @@ -10,8 +10,7 @@ use Icinga\Module\Setup\Webserver; */ class Apache extends Webserver { - protected $fpmUri = 'fcgi://127.0.0.1:9000'; - protected $enableFpm = false; + protected $fpmUri = '127.0.0.1:9000'; protected function getTemplate() { @@ -72,7 +71,7 @@ Alias {urlPath} "{documentRoot}" # # Forward PHP requests to FPM # SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 # -# SetHandler "proxy:{fpmUri}" +# SetHandler "proxy:fcgi://{fpmUri}" # ErrorDocument 503 {urlPath}/error_unavailable.html # # @@ -132,7 +131,7 @@ Alias {urlPath} "{documentRoot}" # Forward PHP requests to FPM SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 - SetHandler "proxy:{fpmUri}" + SetHandler "proxy:fcgi://{fpmUri}" ErrorDocument 503 {urlPath}/error_unavailable.html