1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName matomo.openstreetmap.org
5 ServerAdmin webmaster@openstreetmap.org
8 SSLCertificateFile /etc/ssl/certs/matomo.openstreetmap.org.pem
9 SSLCertificateKeyFile /etc/ssl/private/matomo.openstreetmap.org.key
11 CustomLog /var/log/apache2/matomo.openstreetmap.org-access.log combined
12 ErrorLog /var/log/apache2/matomo.openstreetmap.org-error.log
16 DocumentRoot /srv/matomo.openstreetmap.org
25 ServerName matomo.osm.org
26 ServerAlias piwik.openstreetmap.org
27 ServerAlias piwik.osm.org
28 ServerAdmin webmaster@openstreetmap.org
31 SSLCertificateFile /etc/ssl/certs/matomo.openstreetmap.org.pem
32 SSLCertificateKeyFile /etc/ssl/private/matomo.openstreetmap.org.key
34 CustomLog /var/log/apache2/matomo.openstreetmap.org-access.log combined
35 ErrorLog /var/log/apache2/matomo.openstreetmap.org-error.log
37 RedirectPermanent / https://matomo.openstreetmap.org/
41 ServerName matomo.openstreetmap.org
42 ServerAlias matomo.osm.org
43 ServerAlias piwik.openstreetmap.org
44 ServerAlias piwik.osm.org
45 ServerAdmin webmaster@openstreetmap.org
47 CustomLog /var/log/apache2/matomo.openstreetmap.org-access.log combined
48 ErrorLog /var/log/apache2/matomo.openstreetmap.org-error.log
50 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
51 RedirectPermanent / https://matomo.openstreetmap.org/
54 <Directory /srv/matomo.openstreetmap.org>
60 RewriteCond "%{HTTP:Accept-encoding}" "gzip"
61 RewriteCond "%{REQUEST_FILENAME}\.gz" -s
62 RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]
64 RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]
66 <FilesMatch "\.js\.gz$">
67 Header append Content-Encoding gzip
68 Header append Vary Accept-Encoding
71 <FilesMatch "(\.js|\.js\.gz)$">
72 ExpiresDefault "access plus 1 week"
73 Header set Cache-Control "max-age=604800"
76 <FilesMatch ".+\.ph(ar|p|tml)$">
77 SetHandler "proxy:unix:/run/php/matomo.openstreetmap.org.sock|fcgi://127.0.0.1"