<VirtualHost *:443>
ServerName matomo.openstreetmap.org
- ServerAlias matomo.osm.org
- ServerAlias piwik.openstreetmap.org
- ServerAlias piwik.osm.org
ServerAdmin webmaster@openstreetmap.org
SSLEngine on
Redirect 403 /tmp/
</VirtualHost>
+<VirtualHost *:443>
+ ServerName matomo.osm.org
+ ServerAlias piwik.openstreetmap.org
+ ServerAlias piwik.osm.org
+ ServerAdmin webmaster@openstreetmap.org
+
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/matomo.openstreetmap.org.pem
+ SSLCertificateKeyFile /etc/ssl/private/matomo.openstreetmap.org.key
+
+ CustomLog /var/log/apache2/matomo.openstreetmap.org-access.log combined
+ ErrorLog /var/log/apache2/matomo.openstreetmap.org-error.log
+
+ RedirectPermanent / https://matomo.openstreetmap.org/
+</VirtualHost>
+
<VirtualHost *:80>
ServerName matomo.openstreetmap.org
ServerAlias matomo.osm.org