Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 409AC17535 for ; Fri, 17 Apr 2015 13:39:56 +0000 (UTC) Received: (qmail 64548 invoked by uid 500); 17 Apr 2015 13:39:52 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 64510 invoked by uid 500); 17 Apr 2015 13:39:51 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 64500 invoked by uid 99); 17 Apr 2015 13:39:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 13:39:51 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of info@marc-hoersken.de designates 89.238.84.48 as permitted sender) Received: from [89.238.84.48] (HELO mx.uxnr.de) (89.238.84.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 13:39:26 +0000 Received: from [192.168.0.104] (053d891c.dynamic.tele-ag.de [5.61.137.28]) by mx.uxnr.de (Postfix) with ESMTPSA id 4D0E81C5A2F9 for ; Fri, 17 Apr 2015 15:39:01 +0200 (CEST) X-DKIM: OpenDKIM Filter v2.6.8 mx.uxnr.de 4D0E81C5A2F9 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=marc-hoersken.de; s=picard; t=1429277941; bh=pSrBYn2Xejr8FmkDNdfWFm3lwhdmmmdSoWLh33FNf2A=; h=Subject:From:In-Reply-To:Date:References:To:From; b=vAHeEuuoXPGnQfbAKiiyYHB+fg3vDm8+EF1K+0/siAaUQDrX23xsrYL8rVOLNbEqE 1Nt5aQ6S18nrT9R6z/fdCg0QKpgnk6ODSnVt1U24YWVYEOzVdONPRaLTac5NweVyUQ Zput8XAYrgZZpbvLqf2oxIq/5XQgRHYurh8PYsI8= Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) From: =?utf-8?Q?Marc_H=C3=B6rsken?= In-Reply-To: <71CFE936-6937-4F45-BAD6-0AA39FB146E5@marc-hoersken.de> Date: Fri, 17 Apr 2015 15:38:49 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <856DC4F6-CC40-442A-BB18-9BEA4A658459@marc-hoersken.de> <7BBB98BB-EF90-40A3-A428-FAA175EE9CDF@marc-hoersken.de> <71CFE936-6937-4F45-BAD6-0AA39FB146E5@marc-hoersken.de> To: users@httpd.apache.org X-Mailer: Apple Mail (2.2098) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on picard.vpn.uxnr.de X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-0.9 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, NORMAL_HTTP_TO_IP,T_DKIM_INVALID,WEIRD_PORT autolearn=no version=3.3.2 Subject: Re: [users@httpd] Weird connection issues with mod_proxy_wstunnel Hello everyone, I just figured out the configuration issue causing my problem. Original configuration mod_proxy_wstunnel with SwampDragon: ProxyPass /data/ ws://127.0.0.1:9001/data/ ProxyPassReverse /data/ ws://127.0.0.1:9001/data/ ProxyPass /settings.js http://127.0.0.1:9001/settings.js ProxyPassReverse /settings.js http://127.0.0.1:9001/settings.js ProxyPreserveHost On ProxyRequests Off ProxyVia On The following configuration for mod_proxy_wstunnel with SwampDragon = works fine: ProxyPassMatch /data/(\d+)/(\w+)/websocket = ws://127.0.0.1:9001/data/$1/$2/websocket ProxyPass /data/info http://127.0.0.1:9001/data/info ProxyPassReverse /data/info http://127.0.0.1:9001/data/info ProxyPass /settings.js http://127.0.0.1:9001/settings.js ProxyPassReverse /settings.js http://127.0.0.1:9001/settings.js ProxyPreserveHost On ProxyRequests Off ProxyVia On The issue was caused by the fact that /data/info is requested before a = WebSocket-upgrade request to /data/(\d+)/(\w+)/websocket is performed. = Because /data/info was redirected to the WebSocket-server using the same = rule as /data/(\d+)/(\w+)/websocket before, mod_proxy_wstunnel continued = to also forward all HTTP-traffic to the WebSocket-server. Hope this helps in case anyone else runs into the same problem. You have = to make sure that ws:// or was:// forwarding is only configured for the = actual WebSocket-URL and does not affect any other requests. Thanks for pointing me into the right direction. Best regards, Marc= --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org