Bug 229978 - Apache module proxy_wstunnel_module does not work
Summary: Apache module proxy_wstunnel_module does not work
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-apache (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-23 13:27 UTC by Miroslav Lachman
Modified: 2018-07-25 22:18 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Lachman 2018-07-23 13:27:21 UTC
I tired to setup Apache wit ProxyPass to websockets but even if all required modules are loaded it does not work and I see this in log:

AH01144: No protocol handler was valid for the URL /socket.io/ (scheme 'ws'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.


# httpd -M | grep proxy
 proxy_module (shared)
 proxy_http_module (shared)
 proxy_fcgi_module (shared)
 proxy_wstunnel_module (shared)

The line in VirtualHost config is following:

    ProxyPass /         ws://localhost:10001/

I found a similar problem report for Debian.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880195

Is there a way to fix it for FreeBSD?
Comment 1 Miroslav Lachman 2018-07-25 22:18:34 UTC
Sorry for the noise. 
THe module is working, but the logged message is misleading. This error is printed in case the proxy_wstunnel received non-websocket request. For example plain HTTP request is redirected by ProxyPass to ws://, then you will get this error message. Very strange behaviour.