Apache2 WebSockets reverse-proxy auf der gleichen URL

Konfigurieren Apache2 als proxy WebSocket-Verbindung (BrowserSync zum Beispiel), wenn es auf die gleiche URL, nur mit Unterschied-header "Upgrade: websocket" - und URL-schema ws://?

Beispiel:

HTTP request:
GET http://example.com/browser-sync/socket.io/?... HTTP/1.1
...

WebSocket request:
GET ws://example.com/browser-sync/socket.io/?... HTTP/1.1
Connection: upgrade
Upgrade: websocket
Sec-WebSocket-Version: 13
...

Alle Beispiele, die ich finden -, redirect-Pfad nur einige, wie "<Location /ws>..." oder "ProxyPass /ws/ws://Beispiel.com/"

Meine aktuelle config:

ProxyRequests off
<Location />
    ProxyPass http://127.0.0.1:3000/
    ProxyPassReverse /
</Location>

mod_proxy, mod_proxy_http und mod_proxy_wstunnel aktiviert sind.

InformationsquelleAutor metalim | 2015-04-22
Schreibe einen Kommentar