Setup: Remove fcgi from apache URL
This commit is contained in:
parent
26c6ce3e55
commit
f7248324f4
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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
|
||||
# <FilesMatch "\.php$">
|
||||
# SetHandler "proxy:{fpmUri}"
|
||||
# SetHandler "proxy:fcgi://{fpmUri}"
|
||||
# ErrorDocument 503 {urlPath}/error_unavailable.html
|
||||
# </FilesMatch>
|
||||
# </IfVersion>
|
||||
|
@ -132,7 +131,7 @@ Alias {urlPath} "{documentRoot}"
|
|||
# Forward PHP requests to FPM
|
||||
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
|
||||
<FilesMatch "\.php$">
|
||||
SetHandler "proxy:{fpmUri}"
|
||||
SetHandler "proxy:fcgi://{fpmUri}"
|
||||
ErrorDocument 503 {urlPath}/error_unavailable.html
|
||||
</FilesMatch>
|
||||
</IfVersion>
|
||||
|
|
Loading…
Reference in New Issue