From b3083ea39cc9332d2b9ffafd3074058ab672d88a Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 23 Jul 2015 15:57:13 +0200 Subject: [PATCH] RPM: Add php-fpm compatible apache config refs #9669 --- packages/files/httpd/icingaweb2.conf | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 packages/files/httpd/icingaweb2.conf 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/" + +