billchurch / webssh2

Web SSH Client using ssh2, socket.io, xterm.js, and express. webssh webssh2
MIT License
2.26k stars 527 forks source link

Getting Host not found error when try to connect with https #343

Open kishore-criterion opened 9 months ago

kishore-criterion commented 9 months ago

What's the reverse proxy for Socket.io my post request is failing because the /ssh/socket.io is not found in the reverse proxy I've tried the below proxy rules but it doesn't seems to be working. ProxyPass /ssh/socket.io http://webssh2:2222

DrRago commented 2 months ago

got this reverse proxy config to work, note the "/ssh" in the proxies backend configuration part as well, this is necessary due to static paths for assets.

ProxyPass /ssh/ http://127.0.0.1:PORT/ssh/
ProxyPassReverse /ssh/ http://127.0.0.1:PORT/ssh/