I have the following problem. I have set up a reverse proxy using HaProxy. Now there are still users accessing the Backend IP Direct. And thus (unprotected) accessing the infrastructure without the reverse proxy.
I would like the traffic to be redirected automatically when they access the Backend IP. Unfortunately I have a problem.
If I set up a redirection on the backend to the reverse proxy with php then they land on the reverse proxy and it redirects to the backend originally. Now a loop is created which leads the backend to reverse and the reverse to the backend. How can I force the user to access the reverse proxy url ?