docker-icingaweb2/icingaweb2.patch
2020-06-23 16:47:12 +02:00

27 lines
968 B
Diff

--- packages/files/apache/icingaweb2.conf
+++ packages/files/apache/icingaweb2.conf
@@ -1,4 +1,4 @@
-Alias /icingaweb2 "/usr/share/icingaweb2/public"
+Alias / "/usr/share/icingaweb2/public/"
# Remove comments if you want to use PHP FPM and your Apache version is older than 2.4
#<IfVersion < 2.4>
@@ -34,7 +34,7 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public"
<IfModule mod_rewrite.c>
RewriteEngine on
- RewriteBase /icingaweb2/
+ RewriteBase /
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
@@ -44,7 +44,7 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public"
<IfModule !mod_rewrite.c>
DirectoryIndex error_norewrite.html
- ErrorDocument 404 /icingaweb2/error_norewrite.html
+ ErrorDocument 404 /error_norewrite.html
</IfModule>
# Remove comments if you want to use PHP FPM and your Apache version