From 168616fbd3ff91253f5a3e0df8d4efc140f6dc03 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 30 May 2015 13:44:27 +0200 Subject: Disable raw HTTP access to private repositories --- server/mkrepo.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/mkrepo.sh b/server/mkrepo.sh index 9c40529..adf48fa 100755 --- a/server/mkrepo.sh +++ b/server/mkrepo.sh @@ -54,6 +54,10 @@ if [ "$public" = "y" ]; then touch $f chgrp scm $f chmod g+w $f +else + # Disable raw HTTP access to this directory. + # + echo "deny from all" >$r/.htaccess fi mv $r/hooks/post-update.sample $r/hooks/post-update -- cgit v1.1