# DO NOT EDIT - This file is being maintained by Chef
ServerName <%= @name %>
ServerAdmin webmaster@openstreetmap.org
CustomLog /var/log/apache2/<%= @name %>-access.log combined
ErrorLog /var/log/apache2/<%= @name %>-error.log
RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
RedirectPermanent / https://otrs.openstreetmap.org/
ServerName <%= @name %>
ServerAdmin webmaster@openstreetmap.org
CustomLog /var/log/apache2/<%= @name %>-access.log combined
ErrorLog /var/log/apache2/<%= @name %>-error.log
SSLEngine on
SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
ScriptAlias /otrs/ /opt/otrs/bin/cgi-bin/
Alias /otrs-web/ /opt/otrs/var/httpd/htdocs/
RedirectMatch ^/$ /otrs/index.pl
PerlRequire /opt/otrs/scripts/apache2-perl-startup.pl
PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlModule Apache2::RequestRec
ErrorDocument 403 /otrs/index.pl
ErrorDocument 404 /otrs/index.pl
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
PerlOptions +SetupEnv
Require all granted
PerlOptions -ParseHeaders
AllowOverride None
Options +ExecCGI -Includes
Require all granted
AllowOverride None
Require all granted
Header set Cache-Control "max-age=2592000 must-revalidate"
Header set Cache-Control "max-age=2592000 must-revalidate"