]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/piwik/templates/default/apache.erb
Tune autovaccum for promscale
[chef.git] / cookbooks / piwik / templates / default / apache.erb
index 58703f41b53622f73c5db8643bb3abaaa70abdb3..f1278a31fb921af7021b37ad9a0f56dda8015973 100644 (file)
        Options -Indexes
 
        DocumentRoot /srv/piwik.openstreetmap.org
+
+       Redirect 403 /core/
+       Redirect 403 /config/
+       Redirect 403 /lang/
+       Redirect 403 /tmp/
 </VirtualHost>
 
 <VirtualHost *:80>
@@ -50,4 +55,8 @@
                ExpiresDefault "access plus 1 week"
                Header set Cache-Control "max-age=604800"
        </FilesMatch>
+
+        <FilesMatch ".+\.ph(ar|p|tml)$">
+                SetHandler "proxy:unix:/run/php/piwik.openstreetmap.org.sock|fcgi://127.0.0.1"
+        </FilesMatch>
 </Directory>