Bug 65286 - Websockets connections fail with Apache as forward proxy
Summary: Websockets connections fail with Apache as forward proxy
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy (show other bugs)
Version: 2.4.46
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-04 15:07 UTC by Bjoern Voigt
Modified: 2021-05-04 15:07 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bjoern Voigt 2021-05-04 15:07:00 UTC
When Apache is configured as a forward proxy, Websocket connections fail.

The Websocket echo test https://www.websocket.org/echo.html already fails with "Connect". The error message is

ERROR: undefined

DISCONNECTED

Other connections work as expected.

This is a minimal proxy configuration which shows the issue:

<IfModule mod_proxy.c>
  ProxyRequests On
  <Proxy *>
    Require ip 192.168.1.0/255.255.255.0 127.0.0.0/255.0.0.0 ::1
  </Proxy>
</IfModule>

This is the list of activated Apache modules:

APACHE_MODULES="actions alias asis auth_basic auth_digest authn_file authz_core authz_host authz_groupfile authz_user autoindex cgi dir env expires include log_config mime negotiation rewrite setenvif status ssl userdir proxy proxy_connect proxy_ftp proxy_http proxy_http2 proxy_wstunnel cache cache_disk authn_core dbd authn_dbd reqtimeout authn_socache socache_shmcb socache_dbm wsgi proxy-html proxy_html headers xml2enc dav dav_fs http2 proxy_fcgi"