X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/faf8ae12e85eabb050b0f5eceb2cb67ad1de5261..23b449a94ef4ffc4746775f6a6d6b88c8a1c46c9:/cookbooks/otrs/templates/default/apache.erb diff --git a/cookbooks/otrs/templates/default/apache.erb b/cookbooks/otrs/templates/default/apache.erb index da5a60d2f..e392d8765 100644 --- a/cookbooks/otrs/templates/default/apache.erb +++ b/cookbooks/otrs/templates/default/apache.erb @@ -7,6 +7,7 @@ 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/ @@ -18,6 +19,8 @@ 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/ @@ -37,8 +40,7 @@ Options +ExecCGI PerlOptions +ParseHeaders PerlOptions +SetupEnv - Order allow,deny - Allow from all + Require all granted @@ -49,14 +51,12 @@ AllowOverride None Options +ExecCGI -Includes - Order allow,deny - Allow from all + Require all granted AllowOverride None - Order allow,deny - Allow from all + Require all granted