User Tools

Site Tools


en:user_advanced:gs3_https

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:user_advanced:gs3_https [2025/02/13 00:47] – [Automatic certificate renewal for Tomcat (Greenstone 3.12)] kjdonen:user_advanced:gs3_https [2025/02/13 01:02] (current) – [Using Apache to reverse proxy Tomcat] kjdon
Line 6: Line 6:
  
 ===== Using Apache to reverse proxy Tomcat ===== ===== Using Apache to reverse proxy Tomcat =====
 +
 +Install and setup Apache with certbot SSL certificates. Then in the le-ssl.conf file (eg /etc/httpd/sites-enabled/000-defualt-le-ssl.conf) add teh following into the <VirtualHost *:443> node:
 +
 +
 +       ProxyPass /greenstone3 http://localhost:8383/greenstone3
 +       ProxyPassReverse /greenstone3 http://localhost:8383/greenstone3
 +       <Location /greenstone3>
 +            ProxyPassReverseCookiePath /greenstone3 /greenstone3
 +       </Location>
 +
 +       ProxyPass /webswing-server/ http://localhost:8383/webswing-server/ upgrade=websocket
 +
 +       
 +In build.properties, you will need to set the revproxy settings:
 +        
 +    revproxy.protocol=https
 +    revproxy.domain=<DOMAIN>
 +    ##revproxy.opt_port=8080  - this can stay commented out if you don't want a port number to appear in the public URL 
 +    ##revproxy.context=/greenstone3  - this can stay commented out if you are using the same context as greenstone3.context
 +
 ===== Linux: Getting SSL certificates using certbot ===== ===== Linux: Getting SSL certificates using certbot =====
  
-A 
  
 To have your webserver running under https, you need an SSL certificate. Many hosting platforms have tools to let you use HTTPS. See [[https://certbot.eff.org/hosting_providers]] to check your hosting provider. To have your webserver running under https, you need an SSL certificate. Many hosting platforms have tools to let you use HTTPS. See [[https://certbot.eff.org/hosting_providers]] to check your hosting provider.
Line 19: Line 38:
 Take note of the "What you need" section. Then, choose your webserver ('apache' or 'other' for Tomcat) and operating system, and it will give you instructions to install certbot, plus also instructions to run it to get certificates. Take note of the "What you need" section. Then, choose your webserver ('apache' or 'other' for Tomcat) and operating system, and it will give you instructions to install certbot, plus also instructions to run it to get certificates.
  
 +Port 80 must be open to obtain and renew a certificate.
  
 Once you have certbot installed, if you are using Apache, you can run  Once you have certbot installed, if you are using Apache, you can run 
en/user_advanced/gs3_https.1739407665.txt.gz · Last modified: 2025/02/13 00:47 by kjdon