Changeset 20619
- Timestamp:
- 2009-09-17T16:28:21+12:00 (15 years ago)
- Location:
- gsdl/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/glisite.cfg.in
r20603 r20619 9 9 start_browser=0 10 10 address_resolution_method=2 11 host=localhost 11 hosts=127.0.0.1 localhost 12 hostIP=127.0.0.1 -
gsdl/trunk/gsicontrol.sh
r20603 r20619 49 49 50 50 51 function _configure-port-and-connection { 52 test-gsdlhome 51 function configure-port-and-connection { 52 test-gsdlhome 53 configfile=$1 ; 54 # if no configfile given, launch it with llssite.cfg. Create it from the template if needed. 55 if [ "x$configfile" = "x" ]; then 56 if test ! -e "$GSDLHOME/llssite.cfg" && test -e "$GSDLHOME/llssite.cfg.in" ; then 57 cp "$GSDLHOME/llssite.cfg.in" "$GSDLHOME/llssite.cfg" ; 58 fi 59 configfile="$GSDLHOME/llssite.cfg"; 60 fi ; 61 62 if test -e "$configfile" ; then 63 hostIP=`egrep "^hostIP" $configfile | awk -F= '{print $2}'` ; 64 if [ "$hostIP" != "127.0.0.1" ] ; then 65 hostIP="127.0.0.1 $hostIP" 66 fi 67 else 68 hostIP="127.0.0.1" 69 fi 70 53 71 echo "Enter port number to use:" 54 72 read port ; 73 echo "Enter allowed hosts to use ($hostIP localhost <hostname>) separated by spaces:" 74 read hosts ; 55 75 echo "Allow external connections [yes/no]:" 56 read connection ; 76 read connection ; 57 77 if [ $connection = "yes" ] || [ $connection = "y" ] ; then 58 allowfrom="all" 59 else 60 echo "Enter host (hostname, IP, localhost, 127.0.0.1) to use:" 61 read host ; 62 allowfrom=$host 63 if [ $allowfrom == "localhost" ]; then 64 allowfrom="127.0.0.1" ; 65 fi 78 allowfromall="Allow" 79 else 80 allowfromall="Deny" 66 81 fi 67 82 … … 73 88 cat "$GSDLHOME/apache-httpd/$GSDLOS/conf/httpd.conf.in" \ 74 89 | sed "s@\*\*PORT\*\*@$port@g" \ 75 | sed "s@\*\*CONNECTION\*\*@$allowfrom@g" \ 90 | sed "s@\*\*CONNECTPERMISSION\*\*@$allowfromall@g" \ 91 | sed "s@\*\*HOSTS\*\*@$hosts@g" \ 76 92 | sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" \ 77 93 | sed "s@\*\*APACHE_HOME_OS\*\*@$GSDLHOME/apache-httpd/$GSDLOS@g" \ … … 99 115 echo "Configuring the apache webserver..." ; 100 116 port=`egrep "^portnumber" $configfile | awk -F= '{print $2}'` ; 117 hosts=`egrep "^hosts" $configfile | awk -F= '{print $2}'` ; 101 118 102 119 externalaccess=`egrep "^externalaccess" $configfile | awk -F= '{print $2}'` ; … … 105 122 else 106 123 externalaccess="no" 107 host=`egrep "^host" $configfile | awk -F= '{print $2}'` ; 108 fi 109 110 echo -e "$port\n$externalaccess\n$host" | _configure-port-and-connection ; 124 fi 125 126 echo -e "$port\n$hosts\n$externalaccess" | configure-port-and-connection ; 111 127 if test -e "$GSDLHOME/apache-httpd/$GSDLOS/conf/httpd.conf" ; then 112 128 echo $MONITOR_SUCCESS; … … 227 243 configure-cgi) 228 244 configure-cgi;; 245 set-port) 246 configure-port-and-connection;; 229 247 test-gsdlhome) 230 248 test-gsdlhome;; -
gsdl/trunk/lib/java/server.properties
r20603 r20619 3 3 Server2Settings.URL=Library URL prefix: 4 4 Server2Settings.ExternalAccess=Allow external connections 5 Server2Settings.AddressResolutionMethod=Address resolution method 5 6 Server2Settings.ResolveIP=Get local IP and resolve to a name 6 7 Server2Settings.LocalIP=Get local IP -
gsdl/trunk/llssite.cfg.in
r20603 r20619 9 9 start_browser=1 10 10 address_resolution_method=2 11 host=localhost 11 hosts=127.0.0.1 localhost 12 hostIP=127.0.0.1
Note:
See TracChangeset
for help on using the changeset viewer.