deny some files in apache by default

Wojciech Błaszkowski wojciech at blaszkowski.com
Tue Jul 12 15:59:41 CEST 2011


Dnia Tuesday 12 of July 2011, Arkadiusz Miskiewicz napisał:
> 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>
> 
>  #
> 
> ?

+1

-- 
Pozdrawiam, Best regards, Mit freundlichen Grüßen,

Wojciech Błaszkowski
www.blaszkowski.com
GSM: +48 600 197 207
JID: wojtosz w jabber.biz.pl


More information about the pld-devel-pl mailing list