Hello, I have an operational setup where Apache httpd is proxying secure websockets traffic to an Apache Tomcat server. In other words, I'm using ProxyPass to pass traffic along to a WSS url.
I'm now having some issues trying to throw mod_headers into the mix. I'm attempting to manipulate the "Upgrade" header like so in my Apache httpd Virtual Host:
< LocationMatch "/somewhere" >
RequestHeader set Upgrade websocket
< / LocationMatch >
So, supposing the client sends something funky for Upgrade like "WebSocket" (as an older version of a certain websocket library does), this RequestHeader directive should, by my understanding, replace it with "websocket".
However, when I place %{Upgrade}i in both my Apache httpd and Apache Tomcat access logs, I'm finding that the modified Upgrade header appears only in my httpd access logs, Tomcat says it is getting the original unmodified value!
This is rather perplexing to me as my understanding is that RequestHeader should permanently alter that request header. The Tomcat setup I have is very straightforward and there should be no surprises there.