57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
|
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
|
||
|
|
||
|
DirectoryIndex index.php
|
||
|
|
||
|
<IfModule mod_authz_core.c>
|
||
|
# Apache 2.4
|
||
|
<RequireAll>
|
||
|
Require all granted
|
||
|
</RequireAll>
|
||
|
</IfModule>
|
||
|
|
||
|
<IfModule !mod_authz_core.c>
|
||
|
# Apache 2.2
|
||
|
Order allow,deny
|
||
|
Allow from all
|
||
|
</IfModule>
|
||
|
|
||
|
SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2"
|
||
|
|
||
|
EnableSendfile Off
|
||
|
|
||
|
<IfModule mod_rewrite.c>
|
||
|
RewriteEngine on
|
||
|
RewriteBase /icingaweb2/
|
||
|
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
||
|
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
||
|
RewriteCond %{REQUEST_FILENAME} -d
|
||
|
RewriteRule ^.*$ - [NC,L]
|
||
|
RewriteRule ^.*$ index.php [NC,L]
|
||
|
</IfModule>
|
||
|
|
||
|
<IfModule !mod_rewrite.c>
|
||
|
DirectoryIndex error_norewrite.html
|
||
|
ErrorDocument 404 /error_norewrite.html
|
||
|
</IfModule>
|
||
|
|
||
|
# forwarding PHP requests to FPM
|
||
|
<FilesMatch "\.php$">
|
||
|
SetHandler "proxy:fcgi://127.0.0.1:9000"
|
||
|
ErrorDocument 503 /icingaweb2/error_unavailable.html
|
||
|
</FilesMatch>
|
||
|
</Directory>
|