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:
frontend http_front
bind *:8082 # Port HAProxy uses
default_backend http_back
backend http_back
mode http
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.