1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName <%= @name %>
5 ServerAdmin webmaster@openstreetmap.org
7 CustomLog /var/log/apache2/<%= @name %>-access.log combined
8 ErrorLog /var/log/apache2/<%= @name %>-error.log
10 RedirectPermanent / https://otrs.openstreetmap.org/
14 ServerName <%= @name %>
15 ServerAdmin webmaster@openstreetmap.org
17 CustomLog /var/log/apache2/<%= @name %>-access.log combined
18 ErrorLog /var/log/apache2/<%= @name %>-error.log
22 ScriptAlias /otrs/ /opt/otrs/bin/cgi-bin/
23 Alias /otrs-web/ /opt/otrs/var/httpd/htdocs/
24 RedirectMatch ^/$ /otrs/index.pl
26 PerlRequire /opt/otrs/scripts/apache2-perl-startup.pl
28 PerlModule Apache2::Reload
29 PerlInitHandler Apache2::Reload
30 PerlModule Apache2::RequestRec
33 ErrorDocument 403 /otrs/index.pl
34 ErrorDocument 404 /otrs/index.pl
35 SetHandler perl-script
36 PerlResponseHandler ModPerl::Registry
38 PerlOptions +ParseHeaders
43 <Location /otrs/nph-genericinterface.pl>
44 PerlOptions -ParseHeaders
48 <Directory /opt/otrs/bin/cgi-bin>
50 Options +ExecCGI -Includes
54 <Directory /opt/otrs/var/httpd/htdocs>
59 <Directory /opt/otrs/var/httpd/htdocs/skins/*/*/css-cache>
60 <FilesMatch "\.(css|CSS)$">
61 Header set Cache-Control "max-age=2592000 must-revalidate"
65 <Directory /opt/otrs/var/httpd/htdocs/js/js-cache>
66 <FilesMatch "\.(js|JS)$">
67 Header set Cache-Control "max-age=2592000 must-revalidate"