Explorar o código

Improve Apache2 security

Emmanuel Bouthenot %!s(int64=7) %!d(string=hai) anos
pai
achega
65f9e442d5
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      roles/webserver/templates/apache2/conf.d/security.j2

+ 9 - 0
roles/webserver/templates/apache2/conf.d/security.j2

@@ -115,6 +115,15 @@ TraceEnable Off
     Header set X-Frame-Options: "sameorigin"
 </IfModule>
 
+#
+# Prevent at least directory listing from everywhere
+#
+<Directory />
+    Options FollowSymLinks
+    AllowOverride None
+    Require all granted
+</Directory>
+
 #
 # Various protections
 #  - stuff that should not be accessible publicly