2014-12-10 09:29:38 +01:00
|
|
|
Alias /icingaweb2 "/usr/share/icingaweb2/public"
|
2014-11-19 13:36:02 +01:00
|
|
|
|
2017-12-04 14:14:34 +01:00
|
|
|
# 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
|
2017-12-04 14:16:34 +01:00
|
|
|
# SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
|
2017-12-04 14:14:34 +01:00
|
|
|
# <LocationMatch "^{urlPath}/(.*\.php)$">
|
|
|
|
# ProxyPassMatch "fcgi://127.0.0.1:9000/{documentRoot}/$1"
|
|
|
|
# </LocationMatch>
|
|
|
|
#</IfVersion>
|
|
|
|
|
2014-11-21 00:01:47 +01:00
|
|
|
<Directory "/usr/share/icingaweb2/public">
|
2014-11-19 13:36:02 +01:00
|
|
|
Options SymLinksIfOwnerMatch
|
|
|
|
AllowOverride None
|
|
|
|
|
2017-11-16 11:06:09 +01:00
|
|
|
DirectoryIndex index.php
|
|
|
|
|
2014-11-19 13:36:02 +01:00
|
|
|
<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>
|
|
|
|
|
2014-11-21 00:01:47 +01:00
|
|
|
SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2"
|
2014-11-19 13:36:02 +01:00
|
|
|
|
|
|
|
EnableSendfile Off
|
|
|
|
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine on
|
2014-12-10 09:29:38 +01:00
|
|
|
RewriteBase /icingaweb2/
|
2014-11-19 13:36:02 +01:00
|
|
|
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
|
2017-11-17 11:41:04 +01:00
|
|
|
ErrorDocument 404 /icingaweb2/error_norewrite.html
|
2014-11-19 13:36:02 +01:00
|
|
|
</IfModule>
|
2017-11-16 11:06:09 +01:00
|
|
|
|
2017-12-04 14:14:34 +01:00
|
|
|
# Remove comments if you want to use PHP FPM and your Apache version
|
|
|
|
# is greater than or equal to 2.4
|
|
|
|
# <IfVersion >= 2.4>
|
|
|
|
# # Forward PHP requests to FPM
|
2017-12-04 14:16:34 +01:00
|
|
|
# SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
|
2017-12-04 14:14:34 +01:00
|
|
|
# <FilesMatch "\.php$">
|
|
|
|
# SetHandler "proxy:fcgi://127.0.0.1:9000"
|
|
|
|
# ErrorDocument 503 {urlPath}/error_unavailable.html
|
|
|
|
# </FilesMatch>
|
|
|
|
# </IfVersion>
|
2014-11-19 13:36:02 +01:00
|
|
|
</Directory>
|