Changeset 23252
- Timestamp:
- 2010-10-29T21:30:10+13:00 (13 years ago)
- Location:
- main/trunk/greenstone2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/glisite.cfg.in
r20622 r23252 10 10 address_resolution_method=2 11 11 hostIP= 12 hosts= -
main/trunk/greenstone2/gsicontrol.bat
r22613 r23252 203 203 FOR /F "tokens=2 delims==" %%G IN ('findstr /R ^portnumber "%configfile%"') do set port=%%G 204 204 FOR /F "tokens=2 delims==" %%G IN ('findstr /R ^hostIP "%configfile%"') do set hostIP=%%G 205 FOR /F "tokens=2 delims==" %%G IN ('findstr /R ^hosts "%configfile%"') do set hosts=%%G 205 206 FOR /F "tokens=2 delims==" %%G IN ('findstr /R ^externalaccess "%configfile%"') do set allowfromall=%%G 206 207 … … 218 219 set /p port=Enter port number to use: 219 220 set /p hostIP=Enter host IP to allow (127.0.0.1 is included by default): 221 set /p hosts=Enter hostname or list of hosts to allow (localhost included by default): 220 222 set /p allowfromall=Allow external connections [yes/no]: 221 223 … … 243 245 if exist "%GSDLHOME%\apache-httpd\%GSDLOS%\conf\httpd.conf" "%GSDLHOME%\bin\windows\stophttpd.exe" %GS2_APACHE_HTTPD_SIGNAL% SILENT 244 246 echo Setting config file to use port %port% 245 type "%GSDLHOME%\apache-httpd\%GSDLOS%\conf\httpd.conf.in" | %_sed% "s@\*\*PORT\*\*@%port%@g" | %_sed% "s@\*\*CONNECTPERMISSION\*\*@%allowfromall%@g" | %_sed% "s@\*\*HOST_IP\*\*@%hostIP%@g" | %_sed% "s@\*\* COLLECTHOME\*\*@%safecollectpath%@g" | %_sed% "s@\*\*GSDLHOME\*\*@%safepath%@g" | %_sed% "s@\*\*APACHE_HOME_OS\*\*@%safepath%\/apache-httpd\/%GSDLOS%@g" > "%GSDLHOME%\apache-httpd\%GSDLOS%\conf\httpd.conf"247 type "%GSDLHOME%\apache-httpd\%GSDLOS%\conf\httpd.conf.in" | %_sed% "s@\*\*PORT\*\*@%port%@g" | %_sed% "s@\*\*CONNECTPERMISSION\*\*@%allowfromall%@g" | %_sed% "s@\*\*HOST_IP\*\*@%hostIP%@g" | %_sed% "s@\*\*HOSTS\*\*@%hosts%@g" | %_sed% "s@\*\*COLLECTHOME\*\*@%safecollectpath%@g" | %_sed% "s@\*\*GSDLHOME\*\*@%safepath%@g" | %_sed% "s@\*\*APACHE_HOME_OS\*\*@%safepath%\/apache-httpd\/%GSDLOS%@g" > "%GSDLHOME%\apache-httpd\%GSDLOS%\conf\httpd.conf" 246 248 echo Type '%0 web-start' to start the web server running on port %port% 247 249 echo Done -
main/trunk/greenstone2/gsicontrol.sh
r23134 r23252 56 56 echo "Enter host IP to allow (127.0.0.1 is included by default):" 57 57 read hostIP ; 58 echo "Enter hostname or list of hosts to allow (localhost included by default):" 59 read hosts ; 58 60 echo "Allow external connections [yes/no]:" 59 61 read connection ; … … 61 63 allowfromall="Allow" 62 64 else 63 65 allowfromall="Deny" 64 66 fi 65 67 … … 85 87 | sed "s@\*\*CONNECTPERMISSION\*\*@$allowfromall@g" \ 86 88 | sed "s@\*\*HOST_IP\*\*@$hostIP@g" \ 89 | sed "s@\*\*HOSTS\*\*@$hosts@g" \ 87 90 | sed "s@\*\*COLLECTHOME\*\*@$collecthome@g" \ 88 91 | sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" \ … … 113 116 port=`egrep "^portnumber" $configfile | awk -F= '{print $2}'` ; 114 117 hostIP=`egrep "^hostIP" $configfile | awk -F= '{print $2}'` ; 118 hosts=`egrep "^hosts" $configfile | awk -F= '{print $2}'` ; 115 119 116 120 externalaccess=`egrep "^externalaccess" $configfile | awk -F= '{print $2}'` ; … … 121 125 fi 122 126 123 echo -e "$port\n$hostIP\n$ externalaccess" | configure-port-and-connection ;127 echo -e "$port\n$hostIP\n$hosts\n$externalaccess" | configure-port-and-connection ; 124 128 if test -e "$GSDLHOME/apache-httpd/$GSDLOS/conf/httpd.conf" ; then 125 129 echo $MONITOR_SUCCESS; -
main/trunk/greenstone2/llssite.cfg.in
r20622 r23252 10 10 address_resolution_method=2 11 11 hostIP= 12 hosts= -
main/trunk/greenstone2/runtime-src/packages/apache-httpd/httpd.conf.in
r22635 r23252 424 424 Order deny,allow 425 425 **CONNECTPERMISSION** from all 426 Allow from 127.0.0.1 **HOST_IP** 426 Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost 427 427 </Directory> 428 428 … … 433 433 Order deny,allow 434 434 **CONNECTPERMISSION** from all 435 Allow from 127.0.0.1 **HOST_IP** 435 Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost 436 436 </Directory> 437 437 … … 442 442 Order deny,allow 443 443 **CONNECTPERMISSION** from all 444 Allow from 127.0.0.1 **HOST_IP** 444 Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost 445 445 </Directory> -
main/trunk/greenstone2/runtime-src/packages/apache-httpd/windows-httpd.conf.in
r22613 r23252 489 489 Order deny,allow 490 490 **CONNECTPERMISSION** from all 491 Allow from 127.0.0.1 **HOST_IP** 491 Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost 492 492 </Directory> 493 493 … … 498 498 Order deny,allow 499 499 **CONNECTPERMISSION** from all 500 Allow from 127.0.0.1 **HOST_IP** 500 Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost 501 501 </Directory> 502 502 … … 507 507 Order deny,allow 508 508 **CONNECTPERMISSION** from all 509 Allow from 127.0.0.1 **HOST_IP** 509 Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost 510 510 </Directory>
Note:
See TracChangeset
for help on using the changeset viewer.