I am using a combination of mod_lua, mod_proxy, mod_proxy and
mod_proxy_wstunnel.
Excerpt from the relevant VirtualHost:
LuaHookTranslateName /etc/apache2/proxy.lua proxy_handler
Simplified proxy:
function proxy_handler(r)
if r.uri:match("^/local/websocket") then
r.handler = "proxy-server"
r.proxyreq = apache2.PROXYREQ_REVERSE
r.filename = "proxy:wss://192.0.2.1/remote/websocket"
return apache2.OK
end
return apache2.DECLINED
end
This works like a charm, except that I need a cookie to be set towards
the remote websocket, the content of which I do not want to disclose to
the user. For simplicity's sake, assume the value of the cookie is a
fixed string.
Effectively, I would like to modify the proxied HTTP request in such a
way that I can inject a Cookie: header. I do not want to set a cookie in
the user's client.
I'm not sure what the best approach would be here. Any hint is welcome!
Thanks,
Gerry
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]