--- mod_proxy_wstunnel.c.orig 2016-12-21 17:44:35.000000000 +0100 +++ mod_proxy_wstunnel.c.mod 2016-12-21 18:08:29.000000000 +0100 @@ -128,7 +128,7 @@ return rv; } - buf = apr_pstrdup(p, "Upgrade: WebSocket" CRLF "Connection: Upgrade" CRLF CRLF); + buf = apr_pstrdup(p, "Upgrade: jboss-remoting" CRLF "Connection: Upgrade" CRLF CRLF); ap_xlate_proto_to_ascii(buf, strlen(buf)); e = apr_bucket_pool_create(buf, strlen(buf), p, c->bucket_alloc); APR_BRIGADE_INSERT_TAIL(header_brigade, e); @@ -289,15 +289,18 @@ else if (strncasecmp(url, "ws:", 3) == 0) { scheme = "WS"; } + else if (strncasecmp(url, "jboss-remoting:", 15) == 0) { + scheme = "WS"; + } else { ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(02450) "declining URL %s", url); return DECLINED; } upgrade = apr_table_get(r->headers_in, "Upgrade"); - if (!upgrade || strcasecmp(upgrade, "WebSocket") != 0) { + if (!upgrade || strcasecmp(upgrade, "jboss-remoting") != 0) { ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(02900) - "declining URL %s (not WebSocket)", url); + "declining URL %s (not jboss-remoting)", url); return DECLINED; }