en:user_advanced:gs3_server
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:user_advanced:gs3_server [2025/06/27 01:36] – [Changing Tomcat settings] kjdon | en:user_advanced:gs3_server [2025/06/27 03:00] (current) – [Proxying Tomcat with Apache] kjdon | ||
|---|---|---|---|
| Line 92: | Line 92: | ||
| </ | </ | ||
| + | ==== Turn off localhost access logs ==== | ||
| + | By default, one of the enabled forms of logging in Apache Tomcat is the Local Host Access Log.  This log tracks every connection made to the server. This can add up to a lot of logs that can quickly overwhelm the hard drive space of your server.  | ||
| + | |||
| + | To disable this, edit resources/ | ||
| + | |||
| + | Look for the ''< | ||
| ===== Changing collections or services ===== | ===== Changing collections or services ===== | ||
| Line 104: | Line 110: | ||
| Tomcat uses a Manager to handle HTTP session information. The Manager is specified in a < | Tomcat uses a Manager to handle HTTP session information. The Manager is specified in a < | ||
| - | Session information is stored between normal stop and starts in $GSDL3SRCHOME/ | + | Session information is stored between normal stop and starts in $GSDL3SRCHOME/ | 
| To manually clear saved session info, stop Tomcat and delete the SESSIONS.ser file. | To manually clear saved session info, stop Tomcat and delete the SESSIONS.ser file. | ||
| Line 120: | Line 126: | ||
| ServerName www.greenstone.org | ServerName www.greenstone.org | ||
| ... | ... | ||
| - | ProxyPass / | + | |
| - | ProxyPassReverse / | + | Redirect / | 
| + | ProxyPass / | ||
| + | ProxyPass / | ||
| + | ProxyPassReverse / | ||
| + | < | ||
| + |           ProxyPassReverseCookiePath / | ||
| + | </ | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | Restart Apache for these changes to take effect. | ||
| In our example, the Greenstone3 servlet can be accessed at | In our example, the Greenstone3 servlet can be accessed at | ||
| Line 129: | Line 143: | ||
| http:// | http:// | ||
| - | You will also need to tell Greenstone itself about the new web address. Edit | + | You will also need to tell Greenstone itself about the new web address. Edit **build.properties**. | 
| - | **web/ | + | Set the revproxy fields: | 
| < | < | ||
| - | < | + | revproxy.protocol=https | 
| + | revproxy.domain=www.greenstone.org | ||
| + | ## | ||
| + | ## | ||
| </ | </ | ||
| - | + | You will also need to edit **resources/ | |
| - | Set up the tomcat.port and shutdown port in your '' | + | Uncomment  | 
| - | + | ||
| - | Also edit these files ton contain  | + | |
| < | < | ||
| - | ./resources/web/global.properties.in | + | < | 
| - | ./resources/web/global.properties | + |    < | 
| + |    < | ||
| + | </ | ||
| </ | </ | ||
| - | to change  | ||
| - | < | ||
| - | to | ||
| - | < | ||
| - | 	# | ||
| - | tomcat.context=urban-narrative-greenstone3 | ||
| - | </ | ||
| - | |||
| - | Don't forget to run (from GS3 folder): | ||
| - | < | ||
| - | ant configure-web | ||
| - | </ | ||
| - | to regenerate the global.properties file in the actual web folder. | ||
| - | |||
| - | Finally, to get everything running: | ||
| - | </ | ||
| - | ./ | ||
| - | ant start | ||
| - | < | ||
| - | Then | ||
| - | < | ||
| - | In the same x-term, ssh -L back into the machine running the GS3 server: | ||
| - | < | ||
| - | On any browser, visit: | + | You will need to restart Tomcat for these settings to take effect. | 
| - | < | + | |
| === Running Tomcat behind a proxy === | === Running Tomcat behind a proxy === | ||
| Almost everything works fine when Tomcat is running behind a proxy.  | Almost everything works fine when Tomcat is running behind a proxy.  | ||
en/user_advanced/gs3_server.1750988214.txt.gz · Last modified: 2025/06/27 01:36 by kjdon
                
                