1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName piwik.openstreetmap.org
5 ServerAlias piwik.osm.org
6 ServerAdmin webmaster@openstreetmap.org
9 SSLCertificateFile /etc/ssl/certs/piwik.openstreetmap.org.pem
10 SSLCertificateKeyFile /etc/ssl/private/piwik.openstreetmap.org.key
12 CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
13 ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log
17 DocumentRoot /srv/piwik.openstreetmap.org
21 ServerName piwik.openstreetmap.org
22 ServerAlias piwik.osm.org
23 ServerAdmin webmaster@openstreetmap.org
25 CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
26 ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log
28 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
29 RedirectPermanent / https://piwik.openstreetmap.org/
32 <Directory /srv/piwik.openstreetmap.org>
38 RewriteCond "%{HTTP:Accept-encoding}" "gzip"
39 RewriteCond "%{REQUEST_FILENAME}\.gz" -s
40 RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]
42 RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]
44 <FilesMatch "\.js\.gz$">
45 Header append Content-Encoding gzip
46 Header append Vary Accept-Encoding
49 <FilesMatch "(\.js|\.js\.gz)$">
50 ExpiresDefault "access plus 1 week"
51 Header set Cache-Control "max-age=604800"