File otrs-httpd_conf.patch of Package otrs
Index: scripts/apache2-httpd.include.conf
===================================================================
--- scripts/apache2-httpd.include.conf.orig
+++ scripts/apache2-httpd.include.conf
@@ -2,8 +2,8 @@
# added for OTRS (http://otrs.org/)
# --
-ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
-Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
+ScriptAlias /otrs/ "@OTRS_ROOT@/otrs/bin/cgi-bin/"
+Alias /otrs-web/ "@OTRS_ROOT@/otrs/var/httpd/htdocs/"
# activate this if you are using an Oracle database
#SetEnv ORACLE_HOME /path/to/your/oracle/
@@ -14,7 +14,7 @@ Alias /otrs-web/ "/opt/otrs/var/httpd/ht
<IfModule mod_perl.c>
# Setup environment and preload modules
- Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
+ Perlrequire @OTRS_ROOT@/otrs/scripts/apache2-perl-startup.pl
# Reload Perl modules when changed on disk
PerlModule Apache2::Reload
@@ -52,7 +52,7 @@ Alias /otrs-web/ "/opt/otrs/var/httpd/ht
</IfModule>
-<Directory "/opt/otrs/bin/cgi-bin/">
+<Directory "@OTRS_ROOT@/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
@@ -75,7 +75,8 @@ Alias /otrs-web/ "/opt/otrs/var/httpd/ht
</IfModule>
</Directory>
-<Directory "/opt/otrs/var/httpd/htdocs/">
+<Directory "@OTRS_ROOT@/otrs/var/httpd/htdocs/">
+ Options +FollowSymlinks
AllowOverride None
<IfModule mod_version.c>
@@ -107,28 +108,28 @@ Alias /otrs-web/ "/opt/otrs/var/httpd/ht
<IfModule mod_headers.c>
# Cache css-cache for 30 days
- <Directory "/opt/otrs/var/httpd/htdocs/skins/*/*/css-cache">
+ <Directory "@OTRS_ROOT@/otrs/var/httpd/htdocs/skins/*/*/css-cache">
<FilesMatch "\.(css|CSS)$">
Header set Cache-Control "max-age=2592000 must-revalidate"
</FilesMatch>
</Directory>
# Cache css thirdparty for 4 hours, including icon fonts
- <Directory "/opt/otrs/var/httpd/htdocs/skins/*/*/css/thirdparty">
+ <Directory "@OTRS_ROOT@/otrs/var/httpd/htdocs/skins/*/*/css/thirdparty">
<FilesMatch "\.(css|CSS|woff|svg)$">
Header set Cache-Control "max-age=14400 must-revalidate"
</FilesMatch>
</Directory>
# Cache js-cache for 30 days
- <Directory "/opt/otrs/var/httpd/htdocs/js/js-cache">
+ <Directory "@OTRS_ROOT@/otrs/var/httpd/htdocs/js/js-cache">
<FilesMatch "\.(js|JS)$">
Header set Cache-Control "max-age=2592000 must-revalidate"
</FilesMatch>
</Directory>
# Cache js thirdparty for 4 hours
- <Directory "/opt/otrs/var/httpd/htdocs/js/thirdparty/">
+ <Directory "@OTRS_ROOT@/otrs/var/httpd/htdocs/js/thirdparty/">
<FilesMatch "\.(js|JS)$">
Header set Cache-Control "max-age=14400 must-revalidate"
</FilesMatch>