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
en:user_advanced:webswing_gli [2024/03/06 00:14] – [Debugging] kjdonen:user_advanced:webswing_gli [2024/09/10 03:51] (current) – [Debugging] kjdon
Line 33: 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):+You also need to edit the apache configuration file for your VirtualHost. This file might be in eg /etc/apache2/sites-available/000-default-le-ssl.conf, or /etc/httpd/conf.d/yourcustomname.conf.
  
 +Assuming your tomcat is running on port 8383:
 +
 +If your apache is 2.4.47 or later:
 +
 +<code>
 +ProxyPass "/webswing-server/" "http://localhost:8383/webswing-server/" upgrade=websocket
 +</code>
 +
 +If your apache is older than 2.4.47, try the following:
 <code> <code>
     RewriteEngine on     RewriteEngine on
Line 46: Line 55:
 </code> </code>
  
-This file might be in eg /etc/apache2/sites-available/000-default-le-ssl.confor /etc/httpd/conf.d/yourcustomname.conf+Notethis doesn't work if you have two greenstone installs running at the same time, on different ports. 
  
-==== Debugging ==== 
  
  
Line 59: Line 68:
   *    * 
  
 +==== Debugging ====
 +
 +  * webswing log goes to packages/tomcat/bin/logs/webswing.log. GLI System.err goes there.
 +  * For GLI debugging - add -debug to the args for GathererProg in web/ext/websing/etc/webswing.config.in. Restart tomcat. A GLI log file will go to gli/webswing-users/<username>/debug<date>.txt. Note, this folder is also where the GLI config file is stored for the user - configWebswing.xml. GLI DebugStream.println goes here.
 +
 +
 +====Deactivating Webswing ====
 +
 +Webswing is used for web-based GLI, Phind and Collage classifiers. If you don't need any of these things you can deactivate webswing by running:
 +
 +<code>
 +cd <PATH-TO_GS3-INSTALL>/ext
 +./DEACTIVATE.sh webswing
 +</code>
 +
 +It can be re-activated by running ''./ACTIVATE.sh webswing'' in the same folder.
en/user_advanced/webswing_gli.1709684052.txt.gz · Last modified: 2024/03/06 00:14 by kjdon