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
26 ServerName piwik.openstreetmap.org
27 ServerAlias piwik.osm.org
28 ServerAdmin webmaster@openstreetmap.org
30 CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
31 ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log
33 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
34 RedirectPermanent / https://piwik.openstreetmap.org/
37 <Directory /srv/piwik.openstreetmap.org>
43 RewriteCond "%{HTTP:Accept-encoding}" "gzip"
44 RewriteCond "%{REQUEST_FILENAME}\.gz" -s
45 RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]
47 RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]
49 <FilesMatch "\.js\.gz$">
50 Header append Content-Encoding gzip
51 Header append Vary Accept-Encoding
54 <FilesMatch "(\.js|\.js\.gz)$">
55 ExpiresDefault "access plus 1 week"
56 Header set Cache-Control "max-age=604800"
59 <FilesMatch ".+\.ph(ar|p|tml)$">
60 SetHandler "proxy:unix:/run/php/piwik.openstreetmap.org.sock|fcgi://127.0.0.1"