X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/2ec62d46e6d050fe6384df90a2869036662d1b51..faf8ae12e85eabb050b0f5eceb2cb67ad1de5261:/cookbooks/otrs/templates/default/apache.erb diff --git a/cookbooks/otrs/templates/default/apache.erb b/cookbooks/otrs/templates/default/apache.erb new file mode 100644 index 000000000..da5a60d2f --- /dev/null +++ b/cookbooks/otrs/templates/default/apache.erb @@ -0,0 +1,72 @@ +# 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 / 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 + + 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 + Order allow,deny + Allow from all + + + + PerlOptions -ParseHeaders + + + + + AllowOverride None + Options +ExecCGI -Includes + Order allow,deny + Allow from all + + + + AllowOverride None + Order allow,deny + Allow from all + + + + + Header set Cache-Control "max-age=2592000 must-revalidate" + + + + + + Header set Cache-Control "max-age=2592000 must-revalidate" + +