User Tools

Site Tools


en:release:3.13_release_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:release:3.13_release_notes [2026/02/16 22:40] – [Installation Instructions] kjdonen:release:3.13_release_notes [2026/03/09 03:34] (current) – [Proxying Tomcat with Apache] kjdon
Line 19: Line 19:
 For example, you have tomcat running greenstone on port 8383, with context /greenstone3. These are set in build.properties using properties:**localhost.port.http** and **greenstone.context**. For example, you have tomcat running greenstone on port 8383, with context /greenstone3. These are set in build.properties using properties:**localhost.port.http** and **greenstone.context**.
  
-Your Apache webserver is running as https://mysite.org.nz. To have the tomcat available at mysite.org.nz/archive, for example, add something like the following to your apache config file+Your Apache webserver is running as https://mysite.org.nz. To have the tomcat available at mysite.org.nz/archive, for example, add something like the following to your apache config file VirtualHost:
  
 <code> <code>
Line 38: Line 38:
   ProxyTimeout 300     ProxyTimeout 300  
  
 +  ProxyPass /solr/ http://localhost:7983/solr/  
 +  ProxyPassReverse /solr/ http://localhost:7983/solr/
 +  
 +  ProxyPass /webswing-server/ http://localhost:8383/webswing-server/ upgrade=websocket
 +  
   ProxyPass /archive/ http://localhost:8383/greenstone3/   ProxyPass /archive/ http://localhost:8383/greenstone3/
   ProxyPassReverse /archive/ http://localhost:8383/greenstone3/   ProxyPassReverse /archive/ http://localhost:8383/greenstone3/
 +  
   <Location /archive>   <Location /archive>
     ProxyPassReverseCookiePath /greenstone3 /archive     ProxyPassReverseCookiePath /greenstone3 /archive
Line 56: Line 61:
  
 </code> </code>
 +
 +Your library will then be available at https://mysite.org.nz/archive/library
 +
 +If you want your library to be available at https://mysite.org.nz/library - i.e. without the archive part, you can modify the lines with archive in them to the following:
 +<code>
 +
 +  #RewriteRule ^/archive$ /archive/ [R=301,L]  - comment it out as no longer needed
 +  ...
 +  ProxyPass / http://localhost:8383/greenstone3/
 +  ProxyPassReverse / http://localhost:8383/greenstone3/
 +  
 +  <Location />
 +    ProxyPassReverseCookiePath /greenstone3 /
 +  </Location>
 +  
 +  ....
 +  RequestHeader set X-Forwarded-Prefix "/"
 +</code>
 +
 +Note that if you have a ProxyPass for / it must come AFTER any other ProxyPass directives.
 ===== Running Greenstone ===== ===== Running Greenstone =====
  
en/release/3.13_release_notes.1771281637.txt.gz · Last modified: 2026/02/16 22:40 by kjdon