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 02:48] – [Tomcat Session Handling] kjdon | en:user_advanced:gs3_server [2025/06/27 03:00] (current) – [Proxying Tomcat with Apache] kjdon | ||
|---|---|---|---|
| Line 126: | 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 135: | 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.1750992522.txt.gz · Last modified: 2025/06/27 02:48 by kjdon
                
                