From: Tom Hughes Date: Thu, 2 May 2019 08:26:40 +0000 (+0100) Subject: Redirect forum.osm.org to forum.openstreetmap.org for https connections X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/dfbca127c61d8f5c6d69e7c9a4133880f0540456?hp=-c Redirect forum.osm.org to forum.openstreetmap.org for https connections --- dfbca127c61d8f5c6d69e7c9a4133880f0540456 diff --git a/cookbooks/forum/templates/default/apache.erb b/cookbooks/forum/templates/default/apache.erb index ad7a36d35..e84f1e35b 100644 --- a/cookbooks/forum/templates/default/apache.erb +++ b/cookbooks/forum/templates/default/apache.erb @@ -13,7 +13,6 @@ - ServerName forum.openstreetmap.org ServerAlias forum.osm.org ServerAdmin webmaster@openstreetmap.org @@ -24,6 +23,20 @@ CustomLog /var/log/apache2/forum.openstreetmap.org-access.log combined ErrorLog /var/log/apache2/forum.openstreetmap.org-error.log + RedirectPermanent / https://forum.openstreetmap.org/ + + + + ServerName forum.openstreetmap.org + ServerAdmin webmaster@openstreetmap.org + + SSLEngine on + SSLCertificateFile /etc/ssl/certs/forum.openstreetmap.org.pem + SSLCertificateKeyFile /etc/ssl/private/forum.openstreetmap.org.key + + CustomLog /var/log/apache2/forum.openstreetmap.org-access.log combined + ErrorLog /var/log/apache2/forum.openstreetmap.org-error.log + DocumentRoot /srv/forum.openstreetmap.org/html php_admin_value open_basedir /srv/forum.openstreetmap.org/html/:/usr/share/php/:/tmp/