diff options
Diffstat (limited to 'sca-cpp/trunk/modules/http/basic-auth-conf')
-rwxr-xr-x | sca-cpp/trunk/modules/http/basic-auth-conf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sca-cpp/trunk/modules/http/basic-auth-conf b/sca-cpp/trunk/modules/http/basic-auth-conf index d8c013d853..f376124da7 100755 --- a/sca-cpp/trunk/modules/http/basic-auth-conf +++ b/sca-cpp/trunk/modules/http/basic-auth-conf @@ -25,6 +25,13 @@ root=`echo "import os; print os.path.realpath('$1')" | python` conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"` host=`echo $conf | awk '{ print $6 }'` +# Disallow public access to server resources +cat >$root/conf/noauth.conf <<EOF +# Generated by: basic-auth-conf $* +# Disallow public access to server resources + +EOF + # Generate basic authentication configuration cat >>$root/conf/auth.conf <<EOF # Generated by: basic-auth-conf $* |