User Tools

Site Tools


en:user_advanced:webswing_gli

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
Last revisionBoth sides next revision
en:user_advanced:webswing_gli [2023/11/28 23:58] kjdonen:user_advanced:webswing_gli [2024/01/17 03:06] – [When Tomcat is behind an Apache server] kjdon
Line 1: Line 1:
 ====== Webswing GLI ====== ====== Webswing GLI ======
  
-Webswing is a technology that allows java programs to run in a browser. +Webswing is a technology that allows java programs to run in a browser.\\ 
-Greenstone 3.11 and later comes with webswing enabled.+Greenstone 3.11 and later comes with webswing enabled, so that GLI can be run in a browser, allowing remote users the ability to build and edit collections on the server without having to install Greenstone (and Remote GLI).\\ 
 +To get started using webswing GLI, see tutorial [[https://files.greenstone.org/tutorial/gs3-current/en/webswing_gli.htm| Using Webswing GLI]]
  
-It is provided as an extension, in greenstone3/ext/webswing. You don't need to compile it up, it ships with a ready-to-go JAR/WAR file.+It is provided as an extension, in greenstone3/ext/webswing. You don't need to compile it up, Greenstone3 ships with a ready-to-go webswing JAR/WAR file.
  
 The webswing framework requires a graphical environment. If you are on a standard desktop, then it will work out of the box. The webswing framework requires a graphical environment. If you are on a standard desktop, then it will work out of the box.
 However, if you are on a headless Linux environment, then you will need to install: However, if you are on a headless Linux environment, then you will need to install:
-  * xvfb  (x-virtual frame buffer) - for example, <code>sudo apt install xvfb</code>+  * xvfb  (x-virtual frame buffer) - for example, ''sudo apt install xvfb''
 You may also need the following: You may also need the following:
   * libxext6   * libxext6
Line 32: Line 33:
 See [[https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html]] See [[https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html]]
  
 +You also need to edit the apache configuration file for your VirtualHost (assuming your tomcat is running on port 8383):
  
 +<code>
 +    RewriteEngine on
  
 +    RewriteCond %{HTTP:Upgrade} =websocket
 +    RewriteRule /(.*) ws://localhost:8383/$1 [P,L]
  
 +    RewriteCond %{HTTP:Upgrade} !=websocket
 +    RewriteRule /(.*) http://localhost:8383/$1 [P,L]
 +
 +</code>
 +
 +This file might be in eg /etc/apache2/sites-available/000-default-le-ssl.conf, or /etc/httpd/conf.d/yourcustomname.conf
 +
 +==== Debugging ====
  
  
en/user_advanced/webswing_gli.txt · Last modified: 2024/03/06 00:14 by kjdon