Forum

Hiawatha reverse proxy for gateone

BarbaPeru
9 May 2015, 00:45
Hallo, I'm trying to use hiawatha as a reverse proxy for GateOne (is an HTML5-powered terminal emulator and SSH client). If I connect directly GateOne works.

Hiawatha version: Hiawatha v9.12, cache, IPv6, Monitor, reverse proxy, SSL (1.3.10), Tomahawk, URL toolkit, XSLT
Operating System: Debian Wheezy on a RaspberryPi B

Hiawatha is working fine for other sites (not proxyfied). This is my virtualhost configuration:
VirtualHost {
Hostname = gate.domain.com
ReverseProxy .* https://192.168.1.100:8001/ 30
WebsiteRoot = /var/www/hiawatha
}

When I try to access GateOne:

The WebSocket connection was closed. Will attempt to reconnect every 5 seconds...
NOTE: Some web proxies do not work properly with WebSockets.

And then the tab return to the previous page (or the default page if gateone is the first link I tried).

By the way why even for a reverseproxy hiawatha want a websiteroot?

Thanks, Pietro.
PS: any suggestion for documentation for using hiawatha for owncloud?
Hugo Leisink
11 May 2015, 11:40
Hiawatha's reverse proxy does indeed not support websockets.

The WebsiteRoot is required for every virtual host. It's because it's too much trouble to determine if there might be a URL that does not match with a reverse proxy configuration line. For those, Hiawatha needs to know where to look. Simply point them to an empty directory.
BarbaPeru
11 May 2015, 14:35
OK, I see. Any chance to support websockets for the near future?

Thanks.
This topic has been closed.