Show
Ignore:
Timestamp:
29.10.2010 21:30:10 (9 years ago)
Author:
sjm84
Message:

The localhost and hostname did not work on the Ubuntu here, but should have been working. It does work IF hostname and localhost are written into the httpd.conf file. To get it to do that, made changes to greenstone 3's server.jar code (Server2.java and Server2Settings.java), and so also regenerated server.jar itself, as well as GS2 scripts and config files (httpd.conf.in files for linux and windows), llssite.cfg.in, glisite.cfg.in and gsicontrol.bat and .sh.

Location:
main/trunk/greenstone2/runtime-src/packages/apache-httpd
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/packages/apache-httpd/httpd.conf.in

    r22635 r23252  
    424424     Order deny,allow 
    425425     **CONNECTPERMISSION** from all 
    426      Allow from 127.0.0.1 **HOST_IP** 
     426     Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost 
    427427  </Directory> 
    428428 
     
    433433     Order deny,allow 
    434434     **CONNECTPERMISSION** from all 
    435      Allow from 127.0.0.1 **HOST_IP**  
     435     Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost  
    436436  </Directory>   
    437437   
     
    442442     Order deny,allow 
    443443     **CONNECTPERMISSION** from all 
    444      Allow from 127.0.0.1 **HOST_IP** 
     444     Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost 
    445445  </Directory> 
  • main/trunk/greenstone2/runtime-src/packages/apache-httpd/windows-httpd.conf.in

    r22613 r23252  
    489489     Order deny,allow 
    490490     **CONNECTPERMISSION** from all 
    491      Allow from 127.0.0.1 **HOST_IP** 
     491     Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost 
    492492  </Directory> 
    493493   
     
    498498     Order deny,allow 
    499499     **CONNECTPERMISSION** from all 
    500      Allow from 127.0.0.1 **HOST_IP**  
     500     Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost  
    501501  </Directory> 
    502502 
     
    507507     Order deny,allow 
    508508     **CONNECTPERMISSION** from all 
    509      Allow from 127.0.0.1 **HOST_IP** 
     509     Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost 
    510510  </Directory>