deny some files in apache by default

Arkadiusz Miskiewicz arekm at maven.pl
Tue Jul 12 15:42:02 CEST 2011


What do you think about adding to our apache default config:

[arekm w t400 ~/rpm/packages/apache]$ cvs diff -u apache-common.conf
Index: apache-common.conf
===================================================================
RCS file: /cvsroot/packages/apache/apache-common.conf,v
retrieving revision 1.9
diff -u -u -r1.9 apache-common.conf
--- apache-common.conf  9 Jan 2006 11:24:05 -0000       1.9
+++ apache-common.conf  12 Jul 2011 13:40:56 -0000
@@ -19,6 +19,12 @@
                Order deny,allow
                Deny from all
        </IfModule>
+       <IfModule mod_authz_host.c>
+               <FilesMatch "(~|#|^\.\?\?.*|\.inc)$">
+                       Order deny,allow
+                       Deny from all
+               </FilesMatch>
+       </IfModule>
 </Directory>

 #

?

-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/


More information about the pld-devel-pl mailing list