I’m new to HAProxy and looking to simply re-direct http traffic to Tomcat on the same server - will add conditional logic latter.
Pertinent config includes:
bind *:8082 # Port HAProxy uses
server localhost 127.0.0.1:8080 # Port used by Apache Tomcat
The redirect should go to http://127.0.0.1:8080/static/test.html which is served by Tomcat
I’ve tried various formats using the “redirect” and “http-request set-uri” commands to no avail. Any suggestions are appreciated.