I want know if it’s possible to connect to the backend server based on the protocol which was used in the frontend.
So for example a client requests the page with http://page.com i want to set the backend port 80 for the backend server and use HTTP as well. When the client connects with HTTPS, the backend should also be requested with SSL port 443.
It’s probably working with two different backends for ex. be_http and be_https but maybe there is a solution with only one backend and some kind of a port variable ?
Unfortunately I have another frontend for an external service which listens on port 2400 and uses the same backends as my main one.
If a request now comes through the frontend with port 2400 it uses the same port on the backend server which is not open in the firewall and cannot be opened.
Maybe if there is solution to rewrite the port inside the frontend from 2400 to port 80 / 443 it would work but since the tcp connection is already established i guess not.