2nd attempt at denying .git directory
authorSteve Youngs <steve@sxemacs.org>
Fri, 5 Nov 2010 02:10:40 +0000 (12:10 +1000)
committerSteve Youngs <steve@sxemacs.org>
Fri, 5 Nov 2010 02:10:40 +0000 (12:10 +1000)
Signed-off-by: Steve Youngs <steve@sxemacs.org>
.htaccess

index 3d3a1b9..e0a8020 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -4,5 +4,7 @@ AddType text/html .template
 AddOutputFilter INCLUDES .template
 
 # deny access to the toplevel .git directory
 AddOutputFilter INCLUDES .template
 
 # deny access to the toplevel .git directory
-RewriteEngine On
-RewriteRule \.git - [F,L]
+<Directory .git>
+        Order Deny,Allow
+        Deny from All
+</Directory>