Changeset 22613
- Timestamp:
- 2010-08-12T17:43:37+12:00 (14 years ago)
- Location:
- main/trunk/greenstone2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/gsicontrol.bat
r20906 r22613 233 233 for /F "delims=*" %%T in ('"echo %GSDLHOME%| bin\windows\sed.exe s@\\@\/@g"') do set safepath=%%T 234 234 235 if exist "%GSDLHOME%\cgi-bin\gsdlsite.cfg" FOR /F "tokens=2" %%G IN ('findstr /R ^collecthome "%GSDLHOME%\cgi-bin\gsdlsite.cfg"') do set COLLECTHOME=%%G 236 if "%COLLECTHOME%" == "" set COLLECTHOME=%GSDLHOME%\collect 237 for /F "delims=*" %%T in ('"echo %COLLECTHOME%| bin\windows\sed.exe s@\\@\/@g"') do set safecollectpath=%%T 238 239 235 240 echo Port: %port% 236 241 echo Stopping web server (if running) … … 238 243 if exist "%GSDLHOME%\apache-httpd\%GSDLOS%\conf\httpd.conf" "%GSDLHOME%\bin\windows\stophttpd.exe" %GS2_APACHE_HTTPD_SIGNAL% SILENT 239 244 echo Setting config file to use port %port% 240 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@\*\* GSDLHOME\*\*@%safepath%@g" | %_sed% "s@\*\*APACHE_HOME_OS\*\*@%safepath%\/apache-httpd\/%GSDLOS%@g" > "%GSDLHOME%\apache-httpd\%GSDLOS%\conf\httpd.conf"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" 241 246 echo Type '%0 web-start' to start the web server running on port %port% 242 247 echo Done -
main/trunk/greenstone2/runtime-src/packages/apache-httpd/windows-httpd.conf.in
r20634 r22613 491 491 Allow from 127.0.0.1 **HOST_IP** 492 492 </Directory> 493 494 Alias /greenstone/collect "**COLLECTHOME**" 495 <Directory "**COLLECTHOME**"> 496 Options Indexes MultiViews FollowSymLinks 497 AllowOverride None 498 Order deny,allow 499 **CONNECTPERMISSION** from all 500 Allow from 127.0.0.1 **HOST_IP** 501 </Directory> 493 502 494 503 Alias /greenstone "**GSDLHOME**"
Note:
See TracChangeset
for help on using the changeset viewer.