FPM Config: Support Apache < 2.4
This commit is contained in:
parent
890013c639
commit
ae86dd2987
|
@ -1,5 +1,12 @@
|
||||||
Alias /icingaweb2 "/usr/share/icingaweb2/public"
|
Alias /icingaweb2 "/usr/share/icingaweb2/public"
|
||||||
|
|
||||||
|
<IfVersion < 2.4>
|
||||||
|
# Forward PHP requests to FPM
|
||||||
|
<LocationMatch "^/icingaweb2/(.*\.php)$">
|
||||||
|
ProxyPassMatch "fcgi://127.0.0.1:9000/usr/share/icingaweb2/public/$1"
|
||||||
|
</LocationMatch>
|
||||||
|
</IfVersion>
|
||||||
|
|
||||||
<Directory "/usr/share/icingaweb2/public">
|
<Directory "/usr/share/icingaweb2/public">
|
||||||
Options SymLinksIfOwnerMatch
|
Options SymLinksIfOwnerMatch
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
|
@ -38,9 +45,11 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public"
|
||||||
ErrorDocument 404 /icingaweb2/error_norewrite.html
|
ErrorDocument 404 /icingaweb2/error_norewrite.html
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# Forward PHP requests to FPM
|
<IfVersion >= 2.4>
|
||||||
<FilesMatch "\.php$">
|
# Forward PHP requests to FPM
|
||||||
SetHandler "proxy:fcgi://127.0.0.1:9000"
|
<FilesMatch "\.php$">
|
||||||
ErrorDocument 503 /icingaweb2/error_unavailable.html
|
SetHandler "proxy:fcgi://127.0.0.1:9000"
|
||||||
</FilesMatch>
|
ErrorDocument 503 /icingaweb2/error_unavailable.html
|
||||||
|
</FilesMatch>
|
||||||
|
</IfVersion>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
Loading…
Reference in New Issue