Skip to content

Instantly share code, notes, and snippets.

@pfee
pfee / README.md
Last active November 23, 2016 22:42 — forked from vitkin/README.md

Backport WebSocket to Apache 2.2

This is a fork of https://gist.github.com/vitkin/6661683

That version lacked fixes present in Apache httpd 2.4.10. Therefore I started afresh using the source from 2.4.10. Similar to the previous backport, the new module (mod_proxy_wstunnel.so) can be used with the existing Apache modules from your distro packages.

This patch has been used with apache2-2.2.12-1.42.1 from SLES 11 SP3.

Instructions:

@vitkin
vitkin / README.md
Last active August 5, 2021 19:19
Backport WebSocket to Apache 2.2 that doesn't modify the 'mod_utils.c' and the 'mod_proxy.h'. See the 'README.md' for details and instructions.

Backport WebSocket to Apache 2.2

This is my variation from the original patch and that also includes the suggested correction for the bug with secure websocket 'wss://'.

The difference is that I avoid modifying the mod_utils.c and the mod_proxy.h so that if the mod_proxy module has been embedded in the main httpd binary then it will work and you won't get the