Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4832

Basic redirection to fixed uri

$
0
0

@mdconner wrote:

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.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4832

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>