liftoff/GateOne — Issue #76: GateOne + Apache reverse Proxy
Author: FraGe
Created: 2011-11-22 21:11:19+00:00
State: open

Hi,

This is probably not an issue directly related to GateOne, but I'm having difficulties to get Gate One running behind a reverse proxy.

I'm running GateOne on port 4443, in HTTP mode, I configured apache2 to work as a reverse proxy, sending traffic to gateone. Once this is working the plan is to get apache2 listening for https.

Direct access to gateone on port 4443 works like a charm.

Apache2 config is:

ServerName gateone.domain.tld

Order deny,allow
Allow from all

ProxyPass / http://127.0.0.1:4443/
ProxyPassReverse / http://127.0.0.1:4443/

ErrorLog ${APACHE_LOG_DIR}/gateone.domain.tld.error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug

CustomLog ${APACHE_LOG_DIR}/gateone.domain.tld.access.log combined

If I open gateone.domain.tld.error.log I have the following output:
[Tue Nov 22 21:54:37 2011] [debug] mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //127.0.0.1:4443/ws
[Tue Nov 22 21:54:37 2011] [debug] proxy_util.c(1506): [client IP ADDRESS] proxy: http: found worker http://127.0.0.1:4443/ for http://127.0.0.1:4443/ws
[Tue Nov 22 21:54:37 2011] [debug] mod_proxy.c(1015): Running scheme http handler (attempt 0)
[Tue Nov 22 21:54:37 2011] [debug] mod_proxy_http.c(1973): proxy: HTTP: serving URL http://127.0.0.1:4443/ws
[Tue Nov 22 21:54:37 2011] [debug] proxy_util.c(2011): proxy: HTTP: has acquired connection for (127.0.0.1)
[Tue Nov 22 21:54:37 2011] [debug] proxy_util.c(2067): proxy: connecting http://127.0.0.1:4443/ws to 127.0.0.1:4443
[Tue Nov 22 21:54:37 2011] [debug] proxy_util.c(2193): proxy: connected /ws to 127.0.0.1:4443
[Tue Nov 22 21:54:37 2011] [debug] proxy_util.c(2444): proxy: HTTP: fam 2 socket created to connect to 127.0.0.1
[Tue Nov 22 21:54:37 2011] [debug] proxy_util.c(2576): proxy: HTTP: connection complete to 127.0.0.1:4443 (127.0.0.1)
[Tue Nov 22 21:54:37 2011] [error] [client 85.68.49.100] (20014)Internal error: proxy: error reading status line from remote server 127.0.0.1:4443
[Tue Nov 22 21:54:37 2011] [debug] mod_proxy_http.c(1466): [client IP_ADDRESS] proxy: NOT Closing connection to client although reading from backend server 127.0.0.1:4443 failed.
[Tue Nov 22 21:54:37 2011] [error] [client 85.68.49.100] proxy: Error reading from remote server returned by /ws
[Tue Nov 22 21:54:37 2011] [debug] proxy_util.c(2029): proxy: HTTP: has released connection for (127.0.0.1)

Gateone console gives me:
[I 111122 21:53:58 gateone:744] WebSocket closed (%anonymous).
[I 111122 21:54:03 gateone:744] WebSocket closed (%anonymous).
[I 111122 21:54:08 gateone:744] WebSocket closed (%anonymous).
[I 111122 21:54:13 gateone:744] WebSocket closed (%anonymous).
[I 111122 21:54:22 gateone:744] WebSocket closed (%anonymous).
[I 111122 21:54:27 gateone:744] WebSocket closed (%anonymous).
[I 111122 21:54:32 gateone:744] WebSocket closed (%anonymous).
[I 111122 21:54:37 gateone:744] WebSocket closed (%anonymous).
[I 111122 21:54:42 gateone:744] WebSocket closed (%anonymous).

Any ideas ? I have other apps running with Apache reverse proxy without any issue.

Thanks a lot
F.