I connect my werbserver with the UNIX Socket to the Rexroth reverse Proxy. The header from each http request is changed from the proxy. Inside the header „Host“ (i.e. https://192.168.1.1:8443) key is not correct available. The „Host“ is needed for redirect to a default page. How can I get the Host from the reverse Proxy?
Is there any other behavior expexted than descriped in the RFC7230 Section 5.4?
Solved! Go to Solution.
Did you have a look in our SDK for ctrlX CORE? There is an example how to add your web server to the reverse proxy.
The general idea of it is to hide the ports used internally for communication but add a atring to the URL that defines your web server.
Thank you for your answer.
I looked into the SDK for ctrlX CORE. There I found only information about a connection via a port between the reverse proxy and a webserver.
My question refers to the UNIX socket communication between the reverse proxy and a web server being executed on the ctrlX.
Can I get information on that communication regarding the header content? Thanks.
by default the reverse proxy is not forwarding the headers. But you have several options:
You can find an example snap on github, see package-manifest.json
In the example on Github, the option parameter "websocket" is also listed. Does this mean that a WebSocket connection from an service on the ctrlX can also by the reverse proxy provided? If so, does the reverse proxy make ws to a wss connection?
yes you are right.
When websocket is set, the http(s) request will be upgraded between browser and reverse proxy if requested by client. The connection between browser and reverse Proxy is always secured with TLS, in your case websocket secure (wss) will be used.
So you can safely use http / ws between Server and Reverse Proxy as long as you ensure your server is only locally binded (e.g. using unix socket or loopback interface/localhost) and does not bypass using a seperate port.