mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
apache: Include FPM comments in regular Apache config
This commit is contained in:
parent
208e49a616
commit
eff3b7758c
@ -61,7 +61,8 @@ Alias {urlPath} "{documentRoot}"
|
|||||||
ErrorDocument 404 {urlPath}/error_norewrite.html
|
ErrorDocument 404 {urlPath}/error_norewrite.html
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# Remove comments if you want to use PHP FPM and your Apache version is greater than or equal to 2.4
|
# Remove comments if you want to use PHP FPM and your Apache version
|
||||||
|
# is greater than or equal to 2.4
|
||||||
# <IfVersion >= 2.4>
|
# <IfVersion >= 2.4>
|
||||||
# # Forward PHP requests to FPM
|
# # Forward PHP requests to FPM
|
||||||
# <FilesMatch "\.php$">
|
# <FilesMatch "\.php$">
|
||||||
|
@ -1,5 +1,13 @@
|
|||||||
Alias /icingaweb2 "/usr/share/icingaweb2/public"
|
Alias /icingaweb2 "/usr/share/icingaweb2/public"
|
||||||
|
|
||||||
|
# Remove comments if you want to use PHP FPM and your Apache version is older than 2.4
|
||||||
|
#<IfVersion < 2.4>
|
||||||
|
# # Forward PHP requests to FPM
|
||||||
|
# <LocationMatch "^{urlPath}/(.*\.php)$">
|
||||||
|
# ProxyPassMatch "fcgi://127.0.0.1:9000/{documentRoot}/$1"
|
||||||
|
# </LocationMatch>
|
||||||
|
#</IfVersion>
|
||||||
|
|
||||||
<Directory "/usr/share/icingaweb2/public">
|
<Directory "/usr/share/icingaweb2/public">
|
||||||
Options SymLinksIfOwnerMatch
|
Options SymLinksIfOwnerMatch
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
@ -38,10 +46,13 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public"
|
|||||||
ErrorDocument 404 /icingaweb2/error_norewrite.html
|
ErrorDocument 404 /icingaweb2/error_norewrite.html
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# forwarding PHP requests to FPM
|
# Remove comments if you want to use PHP FPM and your Apache version
|
||||||
# remove comments if you want to use FPM
|
# is greater than or equal to 2.4
|
||||||
|
# <IfVersion >= 2.4>
|
||||||
|
# # Forward PHP requests to FPM
|
||||||
# <FilesMatch "\.php$">
|
# <FilesMatch "\.php$">
|
||||||
# SetHandler "proxy:fcgi://127.0.0.1:9000"
|
# SetHandler "proxy:fcgi://127.0.0.1:9000"
|
||||||
# ErrorDocument 503 /icingaweb2/error_unavailable.html
|
# ErrorDocument 503 {urlPath}/error_unavailable.html
|
||||||
# </FilesMatch>
|
# </FilesMatch>
|
||||||
|
# </IfVersion>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user