openbsd-ports/net/icinga/web2/patches/patch-packages_files_apache_icingaweb2_conf
2022-03-07 21:36:41 +00:00

28 lines
872 B
Plaintext

Index: packages/files/apache/icingaweb2.conf
--- packages/files/apache/icingaweb2.conf.orig
+++ packages/files/apache/icingaweb2.conf
@@ -1,4 +1,4 @@
-Alias /icingaweb2 "/usr/share/icingaweb2/public"
+Alias /icingaweb2 "${TRUEPREFIX}/icinga-web2/public"
# Remove comments if you want to use PHP FPM and your Apache version is older than 2.4
#<IfVersion < 2.4>
@@ -9,7 +9,7 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public"
# </LocationMatch>
#</IfVersion>
-<Directory "/usr/share/icingaweb2/public">
+<Directory "${TRUEPREFIX}/icinga-web2/public">
Options SymLinksIfOwnerMatch
AllowOverride None
@@ -28,7 +28,7 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public"
Allow from all
</IfModule>
- SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2"
+ SetEnv ICINGAWEB_CONFIGDIR "${TRUEPREFIX}/etc/icingaweb2"
EnableSendfile Off