- Timestamp:
- 2009-04-24T11:50:48+12:00 (15 years ago)
- Location:
- gsdl/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/GSI-Makefile
r18851 r19250 37 37 ./gsicontrol.sh configure-admin 38 38 39 configure-port:40 ./gsicontrol.sh configure-port41 42 39 configure-apache: 43 40 ./gsicontrol.sh configure-apache -
gsdl/trunk/gsicontrol.sh
r19140 r19250 1 1 #!/bin/bash 2 2 3 testdone=0 4 3 5 function test-gsdlhome { 4 if test -z "$GSDLHOME" ; then 5 echo "" ; 6 echo "Environment variable GSDLHOME not set." ; 7 echo " This needs to be set to run this gsicontrol command." ; 8 echo " Have you run 'source setup.bash'?" ; 9 echo "" ; 10 exit 1 11 else 12 echo "Using: " ; 13 echo " GSDLHOME = $GSDLHOME" ; 14 echo " GSDLOS = $GSDLOS" ; 15 fi 16 } 6 if [ $testdone == "0" ] ; then 7 if test -z "$GSDLHOME" ; then 8 echo "" ; 9 echo "Environment variable GSDLHOME not set." ; 10 echo " This needs to be set to run this gsicontrol command." ; 11 echo " Have you run 'source setup.bash'?" ; 12 echo "" ; 13 exit 1 14 else 15 echo "Using: " ; 16 echo " GSDLHOME = $GSDLHOME" ; 17 echo " GSDLOS = $GSDLOS" ; 18 fi 19 testdone=1 20 fi 21 } 17 22 18 23 function configure-cgi { … … 43 48 } 44 49 45 function configure-port { 50 51 function _configure-port-and-connection { 46 52 test-gsdlhome 47 53 echo "Enter port number to use:" 48 54 read port ; 55 echo "Allow external connections [yes/no]:" 56 read connection ; 57 if [ $connection = "yes" ] || [ $connection = "y" ] ; then 58 allowfrom="all" 59 else 60 allowfrom="127.0.0.1" 61 fi 62 49 63 if test ! -z $port ; then 50 64 echo "Port: $port" ; … … 54 68 cat "$GSDLHOME/apache-httpd/$GSDLOS/conf/httpd.conf.in" \ 55 69 | sed "s@\*\*PORT\*\*@$port@g" \ 70 | sed "s@\*\*ALLOWFROM\*\*@$allowfrom@g" \ 56 71 | sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" \ 57 72 | sed "s@\*\*APACHE_HOME_OS\*\*@$GSDLHOME/apache-httpd/$GSDLOS@g" \ … … 79 94 echo "Configuring the apache webserver..." ; 80 95 port=`egrep "^portnumber" $configfile | awk -F= '{print $2}'` ; 81 echo $port | configure-port ; 96 97 externalaccess=`egrep "^externalaccess" $configfile | awk -F= '{print $2}'` ; 98 if [ $externalaccess == "1" ] ; then 99 externalaccess="yes" 100 else 101 externalaccess="no" 102 fi 103 104 echo -e "$port\n$externalaccess" | _configure-port-and-connection ; 82 105 if test -e "$GSDLHOME/apache-httpd/$GSDLOS/conf/httpd.conf" ; then 83 106 echo $MONITOR_SUCCESS; … … 149 172 echo " configure-web [config-filename]" 150 173 echo " configure-apache [config-filename]" 151 echo " configure-port"152 174 echo " configure-cgi" 153 175 echo " test-gsdlhome" … … 175 197 configure-web) 176 198 configure-web $configfile;; 177 configure-port)178 configure-port;;179 199 configure-apache) 180 200 configure-apache $configfile;; -
gsdl/trunk/llssite.cfg.in
r19021 r19250 4 4 consolelog=0 5 5 portnumber=80 6 externalaccess=1 6 7 autoenter=0 7 8 browser=3 -
gsdl/trunk/runtime-src/packages/apache-httpd/httpd.conf.in
r18814 r19250 420 420 AllowOverride None 421 421 Order allow,deny 422 Allow from all422 Allow from **CONNECTION** 423 423 </Directory>
Note:
See TracChangeset
for help on using the changeset viewer.