File otrs-httpd_conf.patch of Package otrs.6847
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
@@ -36,7 +36,13 @@ Alias /otrs-web/ "/opt/otrs/var/httpd/ht
Allow from all
</IfVersion>
<IfVersion >= 2.4>
- Require all granted
+ <IfModule !mod_access_compat.c>
+ Require all granted
+ </IfModule>
+ <IfModule mod_access_compat.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
@@ -52,7 +58,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
@@ -62,7 +68,13 @@ Alias /otrs-web/ "/opt/otrs/var/httpd/ht
Allow from all
</IfVersion>
<IfVersion >= 2.4>
- Require all granted
+ <IfModule !mod_access_compat.c>
+ Require all granted
+ </IfModule>
+ <IfModule mod_access_compat.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
@@ -75,7 +87,35 @@ Alias /otrs-web/ "/opt/otrs/var/httpd/ht
</IfModule>
</Directory>
-<Directory "/opt/otrs/var/httpd/htdocs/">
+<Directory "@OTRS_ROOT@/otrs/var/httpd/htdocs/js/thirdparty/ckeditor-4.3/">
+ #
+ # Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
+ # For licensing, see LICENSE.html or http://ckeditor.com/license
+ #
+
+ #
+ # On some specific Linux installations you could face problems with Firefox.
+ # It could give you errors when loading the editor saying that some illegal
+ # characters were found (three strange chars in the beginning of the file).
+ # This could happen if you map the .js or .css files to PHP, for example.
+ #
+ # Those characters are the Byte Order Mask (BOM) of the Unicode encoded files.
+ # All FCKeditor files are Unicode encoded.
+ #
+
+ AddType application/x-javascript .js
+ AddType text/css .css
+
+ #
+ # If PHP is mapped to handle XML files, you could have some issues. The
+ # following will disable it.
+ #
+
+ AddType text/xml .xml
+</Directory>
+
+<Directory "@OTRS_ROOT@/otrs/var/httpd/htdocs/">
+ Options +FollowSymlinks
AllowOverride None
<IfModule mod_version.c>
@@ -84,8 +124,14 @@ Alias /otrs-web/ "/opt/otrs/var/httpd/ht
Allow from all
</IfVersion>
<IfVersion >= 2.4>
- Require all granted
- </IfVersion>
+ <IfModule !mod_access_compat.c>
+ Require all granted
+ </IfModule>
+ <IfModule mod_access_compat.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
+ </IfVersion>
</IfModule>
<IfModule !mod_version.c>
Order allow,deny
@@ -107,28 +153,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>