mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-24 10:27:46 +02:00
RPM/httpd and php-fpm: Load error html if mod_proxy is disabled
refs #9669
This commit is contained in:
parent
e068fab4fd
commit
4ae3a8568a
@ -1,6 +1,16 @@
|
|||||||
Alias /icingaweb2 "/usr/share/icingaweb2/public"
|
Alias /icingaweb2 "/usr/share/icingaweb2/public"
|
||||||
|
|
||||||
<Directory "/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
|
Options SymLinksIfOwnerMatch
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
|
|
||||||
@ -21,21 +31,14 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public"
|
|||||||
|
|
||||||
EnableSendfile Off
|
EnableSendfile Off
|
||||||
|
|
||||||
<IfModule mod_rewrite.c>
|
RewriteEngine on
|
||||||
RewriteEngine on
|
RewriteBase /icingaweb2/
|
||||||
RewriteBase /icingaweb2/
|
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
||||||
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
||||||
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
RewriteCond %{REQUEST_FILENAME} -d
|
||||||
RewriteCond %{REQUEST_FILENAME} -d
|
RewriteRule ^.*$ - [NC,L]
|
||||||
RewriteRule ^.*$ - [NC,L]
|
RewriteRule ^.*$ index.php [NC,L]
|
||||||
RewriteRule ^.*$ index.php [NC,L]
|
DirectoryIndex index.php
|
||||||
DirectoryIndex index.php
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<IfModule !mod_rewrite.c>
|
|
||||||
DirectoryIndex error_norewrite.html
|
|
||||||
ErrorDocument 404 /error_norewrite.html
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<FilesMatch \.php$>
|
<FilesMatch \.php$>
|
||||||
SetHandler "proxy:unix:/run/php-fpm/icingaweb2.sock|fcgi://localhost/"
|
SetHandler "proxy:unix:/run/php-fpm/icingaweb2.sock|fcgi://localhost/"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user