mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Setup: Remove fcgi from apache URL
This commit is contained in:
parent
26c6ce3e55
commit
f7248324f4
@ -39,6 +39,13 @@ abstract class Webserver
|
|||||||
*/
|
*/
|
||||||
protected $fpmUri;
|
protected $fpmUri;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable to pass requests to FPM
|
||||||
|
*
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
protected $enableFpm = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create instance by type name
|
* Create instance by type name
|
||||||
*
|
*
|
||||||
|
@ -10,8 +10,7 @@ use Icinga\Module\Setup\Webserver;
|
|||||||
*/
|
*/
|
||||||
class Apache extends Webserver
|
class Apache extends Webserver
|
||||||
{
|
{
|
||||||
protected $fpmUri = 'fcgi://127.0.0.1:9000';
|
protected $fpmUri = '127.0.0.1:9000';
|
||||||
protected $enableFpm = false;
|
|
||||||
|
|
||||||
protected function getTemplate()
|
protected function getTemplate()
|
||||||
{
|
{
|
||||||
@ -72,7 +71,7 @@ Alias {urlPath} "{documentRoot}"
|
|||||||
# # Forward PHP requests to FPM
|
# # Forward PHP requests to FPM
|
||||||
# SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
|
# SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
|
||||||
# <FilesMatch "\.php$">
|
# <FilesMatch "\.php$">
|
||||||
# SetHandler "proxy:{fpmUri}"
|
# SetHandler "proxy:fcgi://{fpmUri}"
|
||||||
# ErrorDocument 503 {urlPath}/error_unavailable.html
|
# ErrorDocument 503 {urlPath}/error_unavailable.html
|
||||||
# </FilesMatch>
|
# </FilesMatch>
|
||||||
# </IfVersion>
|
# </IfVersion>
|
||||||
@ -132,7 +131,7 @@ Alias {urlPath} "{documentRoot}"
|
|||||||
# Forward PHP requests to FPM
|
# Forward PHP requests to FPM
|
||||||
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
|
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
|
||||||
<FilesMatch "\.php$">
|
<FilesMatch "\.php$">
|
||||||
SetHandler "proxy:{fpmUri}"
|
SetHandler "proxy:fcgi://{fpmUri}"
|
||||||
ErrorDocument 503 {urlPath}/error_unavailable.html
|
ErrorDocument 503 {urlPath}/error_unavailable.html
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
</IfVersion>
|
</IfVersion>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user