diff --git a/packages/files/httpd/icingaweb2.conf b/packages/files/httpd/icingaweb2.conf index fb42bcb6b..fbd763593 100644 --- a/packages/files/httpd/icingaweb2.conf +++ b/packages/files/httpd/icingaweb2.conf @@ -1,6 +1,16 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public" + + DirectoryIndex error_norewrite.html + ErrorDocument 404 /error_norewrite.html + + + + DirectoryIndex error_noproxyfcgi.html + ErrorDocument 404 /error_noproxyfcgi.html + + Options SymLinksIfOwnerMatch AllowOverride None @@ -21,21 +31,14 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public" 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 - + 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 SetHandler "proxy:unix:/run/php-fpm/icingaweb2.sock|fcgi://localhost/"