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 /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
11 RedirectPermanent / https://otrs.openstreetmap.org/
15 ServerName <%= @name %>
16 ServerAdmin webmaster@openstreetmap.org
18 CustomLog /var/log/apache2/<%= @name %>-access.log combined
19 ErrorLog /var/log/apache2/<%= @name %>-error.log
22 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
23 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
25 ScriptAlias /otrs/ /opt/otrs/bin/cgi-bin/
26 Alias /otrs-web/ /opt/otrs/var/httpd/htdocs/
27 RedirectMatch ^/$ /otrs/index.pl
29 PerlRequire /opt/otrs/scripts/apache2-perl-startup.pl
31 PerlModule Apache2::Reload
32 PerlInitHandler Apache2::Reload
33 PerlModule Apache2::RequestRec
36 ErrorDocument 403 /otrs/index.pl
37 ErrorDocument 404 /otrs/index.pl
38 SetHandler perl-script
39 PerlResponseHandler ModPerl::Registry
41 PerlOptions +ParseHeaders
46 <Location /otrs/nph-genericinterface.pl>
47 PerlOptions -ParseHeaders
51 <Directory /opt/otrs/bin/cgi-bin>
53 Options +ExecCGI -Includes
57 <Directory /opt/otrs/var/httpd/htdocs>
62 <Directory /opt/otrs/var/httpd/htdocs/skins/*/*/css-cache>
63 <FilesMatch "\.(css|CSS)$">
64 Header set Cache-Control "max-age=2592000 must-revalidate"
68 <Directory /opt/otrs/var/httpd/htdocs/js/js-cache>
69 <FilesMatch "\.(js|JS)$">
70 Header set Cache-Control "max-age=2592000 must-revalidate"