1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName <%= @name %>
5 <% @aliases.each do |alias_name| -%>
6 ServerAlias <%= alias_name %>
8 ServerAdmin webmaster@openstreetmap.org
10 CustomLog /var/log/apache2/<%= @name %>-access.log combined
11 ErrorLog /var/log/apache2/<%= @name %>-error.log
13 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
14 RedirectPermanent / https://otrs.openstreetmap.org/
16 <% unless @aliases.empty? -%>
19 ServerName <%= @aliases.first %>
20 <% @aliases.drop(1).each do |alias_name| -%>
21 ServerAlias <%= alias_name %>
23 ServerAdmin webmaster@openstreetmap.org
26 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
27 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
29 CustomLog /var/log/apache2/<%= @name %>-access.log combined
30 ErrorLog /var/log/apache2/<%= @name %>-error.log
32 RedirectPermanent / https://<%= @name %>/
37 ServerName <%= @name %>
38 ServerAdmin webmaster@openstreetmap.org
40 CustomLog /var/log/apache2/<%= @name %>-access.log combined
41 ErrorLog /var/log/apache2/<%= @name %>-error.log
44 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
45 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
47 ScriptAlias /otrs/ /opt/otrs/bin/cgi-bin/
48 Alias /otrs-web/ /opt/otrs/var/httpd/htdocs/
49 RedirectMatch ^/$ /otrs/index.pl
51 PerlRequire /opt/otrs/scripts/apache2-perl-startup.pl
53 PerlModule Apache2::Reload
54 PerlInitHandler Apache2::Reload
55 PerlModule Apache2::RequestRec
58 ErrorDocument 403 /otrs/index.pl
59 ErrorDocument 404 /otrs/index.pl
60 SetHandler perl-script
61 PerlResponseHandler ModPerl::Registry
63 PerlOptions +ParseHeaders
68 <Location /otrs/nph-genericinterface.pl>
69 PerlOptions -ParseHeaders
73 <Directory /opt/otrs/bin/cgi-bin>
75 Options +ExecCGI -Includes
79 <Directory /opt/otrs/var/httpd/htdocs>
84 <Directory /opt/otrs/var/httpd/htdocs/skins/*/*/css-cache>
85 <FilesMatch "\.(css|CSS)$">
86 Header set Cache-Control "max-age=2592000 must-revalidate"
90 <Directory /opt/otrs/var/httpd/htdocs/js/js-cache>
91 <FilesMatch "\.(js|JS)$">
92 Header set Cache-Control "max-age=2592000 must-revalidate"