File otobo-httpd_conf.patch of Package otobo

Index: scripts/apache2-httpd.include.conf
===================================================================
--- scripts/apache2-httpd.include.conf.orig
+++ scripts/apache2-httpd.include.conf
@@ -2,12 +2,16 @@
 # Copyright (C) 2019-2023 Rother OSS GmbH, https://otobo.de/
 # added for OTOBO (http://otobo.de/)
 # --
+######################################################################
+
+# !!! add the following block to your vhost config !!!
+
+### Start (vhost): otobo special config ###
 
 # This configuration is the standard way for running OTOBO under Apache 2.4 without SSL.
 # Dynamic and static content is generated by the Plack app otobo.psgi.
 # DEFLATE and support for HTTPS should be handled in separate configuration files.
 
-# mod_perl is required
 <IfModule !mod_perl.c>
     Error "mod_perl is required for Plack::Handler::Apache. Use apache2-httpd-cgi.include.conf as fallback."
 </IfModule>
@@ -27,7 +31,7 @@
 
     # Preload otobo.psgi so that that the app doesn't have to be loaded again for every process.
     # This also sets @INC.
-    PerlPostConfigRequire /opt/otobo/scripts/apache2-perl-preload_otobo_psgi.pl
+    PerlPostConfigRequire @OTOBO_ROOT@/scripts/apache2-perl-preload_otobo_psgi.pl
 
     # everything is handled by the PSGI app
     <Location />
@@ -35,7 +39,7 @@
         # handle all requests, including the static content, with otobo.psgi
         SetHandler          perl-script
         PerlResponseHandler Plack::Handler::Apache2
-        PerlSetVar          psgi_app /opt/otobo/bin/psgi-bin/otobo.psgi
+        PerlSetVar          psgi_app @OTOBO_ROOT@/bin/psgi-bin/otobo.psgi
 
         # Require is supported starting with Apache 2.4.
         # No authentication and all requests are allowed.
@@ -45,6 +49,10 @@
 
 </IfModule>
 
+### End (vhost): otobo special config ###
+
+# !!! This is Server configuration context !!!
+
 # Limit the number of requests per child to avoid excessive memory usage.
 # 1000 is the same value as the default value used by Gazelle.
 MaxConnectionsPerChild 1000
openSUSE Build Service is sponsored by