Merge pull request #3166 from Icinga/fix/fpm-apache-config

Remove superfluous LocationMatch block from the Apache FPM config
This commit is contained in:
lippserd 2017-11-28 09:36:04 +01:00 committed by GitHub
commit 890013c639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 11 deletions

View File

@ -1,15 +1,5 @@
Alias /icingaweb2 "/usr/share/icingaweb2/public"
# forwarding PHP requests to FPM
<LocationMatch "^/icingaweb2/(.*\.php)$">
ProxyPassMatch "fcgi://127.0.0.1:9000/usr/share/icingaweb2/public/$1"
<IfModule mod_authz_core.c>
# Apache 2.4
ProxyErrorOverride on
ErrorDocument 503 /icingaweb2/error_unavailable.html
</IfModule>
</LocationMatch>
<Directory "/usr/share/icingaweb2/public">
Options SymLinksIfOwnerMatch
AllowOverride None
@ -48,7 +38,7 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public"
ErrorDocument 404 /icingaweb2/error_norewrite.html
</IfModule>
# forwarding PHP requests to FPM
# Forward PHP requests to FPM
<FilesMatch "\.php$">
SetHandler "proxy:fcgi://127.0.0.1:9000"
ErrorDocument 503 /icingaweb2/error_unavailable.html