Hi,
I'm failing to proxy out the connection through websocket. The HTTP connection
is working without a problem.
From the instructions:
<Location /guacamole/websocket-tunnel>
Order allow,deny
Allow from all
ProxyPass ws://localhost:8080/guacamole/websocket-tunnel
ProxyPassReverse ws://localhost:8080/guacamole/websocket-tunnel
</Location>
I get a 500 server error when trying to connect. Going into the logs the only
thing I can find (but I may not have looked in the right place) is:
AH01144: No protocol handler was valid for the URL /guacamole/websocket-tunnel/
(scheme 'ws'). If you are using a DSO version of mod_proxy, make sure the proxy
submodules are included in the
configuration using LoadModule.
The right modules seem there though, this is the output of apache2ctl -t -D
DUMP_MODULES:
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
php7_module (shared)
proxy_module (shared)
proxy_balancer_module (shared)
proxy_connect_module (shared)
proxy_http_module (shared)
proxy_wstunnel_module (shared)
reqtimeout_module (shared)
setenvif_module (shared)
slotmem_shm_module (shared)
socache_shmcb_module (shared)
ssl_module (shared)
status_module (shared)
Browsing the web I've also tried adding “/“ in various places, or adding lines
such as:
RewriteEngine On
ProxyPreserveHost On
ProxyRequests Off
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://localhost:5000/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://localhost:5000/$1 [P,L]
but to no avail. I've also tried the Chrome websocket Test Client on the server
and can't connect to ws://localhost:8080/guacamole/websocket-tunnel. I'm
actually wondering what is that address pointing to - do I need to change
something in Tomcat? could it be something wrong with my guacamole
installation?
My config is Apache/2.4.41 (Ubuntu) Server, on Ubuntu 20, using Tomcat9.
Thanks a lot,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]