FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
02-22-2021 09:09 AM
Hello,
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?
https://tools.ietf.org/html/rfc7230#section-5.4
Thanks.
Best regards
Solved! Go to Solution.
02-25-2021 10:30 AM - edited 02-25-2021 10:30 AM
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.
02-26-2021 12:34 PM
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.
02-26-2021 03:29 PM
Now I get the topic. I will check that with our R&D.
03-05-2021 08:59 AM
Hi,
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
03-08-2021 12:33 PM
Hi,
thanks for the answer.
06-02-2021 12:42 PM
Hi,
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?
Thanks!
Best regards
WolfgangDannert
06-11-2021 08:29 AM
Hi,
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.
Best regards
Jochen Scheib
06-14-2021 04:29 PM
Hello jochen-scheib,
Good to hear and thanks for the answer.
Best regards
WolfgangDannert