]> git.openstreetmap.org Git - chef.git/commitdiff
Disable directory indeses over http as well
authorTom Hughes <tom@compton.nu>
Thu, 7 Aug 2014 13:18:57 +0000 (14:18 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 7 Aug 2014 13:18:57 +0000 (14:18 +0100)
cookbooks/piwik/templates/default/apache.erb

index 42aae8254076a47c72b03ab5346200b11aea935b..8db8044eb00e46116d2699df2e3cf1186ea0c63d 100644 (file)
@@ -8,6 +8,8 @@
        CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
        ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log
 
        CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
        ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log
 
+       Options -Indexes
+
        DocumentRoot /srv/piwik.openstreetmap.org
        RedirectPermanent /index.php https://piwik.openstreetmap.org/index.php
 </VirtualHost>
        DocumentRoot /srv/piwik.openstreetmap.org
        RedirectPermanent /index.php https://piwik.openstreetmap.org/index.php
 </VirtualHost>
@@ -25,6 +27,7 @@
        CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
        ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log
 
        CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
        ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log
 
-       DocumentRoot /srv/piwik.openstreetmap.org
        Options -Indexes
        Options -Indexes
+
+       DocumentRoot /srv/piwik.openstreetmap.org
 </VirtualHost>
 </VirtualHost>