RPM/httpd and php-fpm: Load error html if mod_proxy is disabled

refs #9669
This commit is contained in:
Eric Lippmann 2015-07-28 15:19:55 +02:00
parent e068fab4fd
commit 4ae3a8568a

View File

@ -1,6 +1,16 @@
Alias /icingaweb2 "/usr/share/icingaweb2/public"
<Directory "/usr/share/icingaweb2/public">
<IfModule !mod_rewrite.c>
DirectoryIndex error_norewrite.html
ErrorDocument 404 /error_norewrite.html
</IfModule>
<IfModule !mod_proxy_fgci.c>
DirectoryIndex error_noproxyfcgi.html
ErrorDocument 404 /error_noproxyfcgi.html
</IfModule>
Options SymLinksIfOwnerMatch
AllowOverride None
@ -21,21 +31,14 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public"
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]
DirectoryIndex index.php
</IfModule>
<IfModule !mod_rewrite.c>
DirectoryIndex error_norewrite.html
ErrorDocument 404 /error_norewrite.html
</IfModule>
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
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php-fpm/icingaweb2.sock|fcgi://localhost/"