diff options
Diffstat (limited to '')
-rwxr-xr-x | sca-cpp/trunk/modules/http/basic-auth-conf | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sca-cpp/trunk/modules/http/basic-auth-conf b/sca-cpp/trunk/modules/http/basic-auth-conf index 77ca054f1c..39dde90b50 100755 --- a/sca-cpp/trunk/modules/http/basic-auth-conf +++ b/sca-cpp/trunk/modules/http/basic-auth-conf @@ -25,6 +25,11 @@ 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 }'` +loc=$2 +if [ "$loc" = "" ]; then + loc="/" +fi + sslconf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-ssl-conf"` if [ "$sslconf" = "" ]; then sslsuffix="" @@ -44,7 +49,7 @@ cat >>$root/conf/locauth$sslsuffix.conf <<EOF # Generated by: basic-auth-conf $* # Require clients to present a userid + password for HTTP # basic authentication -<Location /> +<Location $loc> AuthType Basic AuthName "$host" AuthBasicProvider file |