diff --git a/packages/files/httpd/icingaweb2.conf b/packages/files/httpd/icingaweb2.conf new file mode 100644 index 000000000..fb42bcb6b --- /dev/null +++ b/packages/files/httpd/icingaweb2.conf @@ -0,0 +1,43 @@ +Alias /icingaweb2 "/usr/share/icingaweb2/public" + + + Options SymLinksIfOwnerMatch + AllowOverride None + + + # Apache 2.4 + + Require all granted + + + + + # Apache 2.2 + Order allow,deny + Allow from all + + + SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2" + + EnableSendfile Off + + + 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] + DirectoryIndex index.php + + + + DirectoryIndex error_norewrite.html + ErrorDocument 404 /error_norewrite.html + + + + SetHandler "proxy:unix:/run/php-fpm/icingaweb2.sock|fcgi://localhost/" + +