ergochat / ergo

A modern IRC server (daemon/ircd) written in Go.
https://ergo.chat/
MIT License
2.27k stars 180 forks source link

document apache websocket proxy block #2050

Closed slingamn closed 1 year ago

slingamn commented 1 year ago

@EchedeyLR reported that this worked, I just need to copy it into the manual:

RequestHeader setifempty X-Forwarded-Proto https

ProxyPreserveHost On
ProxyPass /webirc http://127.0.0.1:8067 upgrade=websocket
ProxyPassReverse /webirc http://127.0.0.1:8067
slingamn commented 1 year ago

Needs 2.4.47 or higher.

EchedelleLR commented 1 year ago

Just to add that for older versions is possible to make it work by enabling proxy_wstunnel, removing the upgrade=websocket part and replacing http:// by ws://.

EchedelleLR commented 1 year ago

@slingamn you forgot to mention of wstunnel for older Apache HTTP Server versions.