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

Http-request redirect

$
0
0

Hi all,

Apologies if this is a stupid request but I’m quite new to HAProxy…
I have TMK a simple use-case:
I want to redirect requests made into my KVM host, to the URl of one of the guest VMs, in this case a gitea box.
So…
HAProxy is running on the KVM host (10.10.10.5 - gitout.mine.local:3000)
Gitea guest VM running on KVM (172.10.10.5 - gitea.lab.local:3000)

How can I make a request to ‘gitout.mine.local:3000’ and redirect it into, gitea.lab.local:3000

It would seem I need to use the ‘http-request redirect’ function in HAProxy but I still can’t wrap my head around it.
Could anyone one kindly provide some pointers on how to achieve the example above?
Many thanks in advance.

Cheers,

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4720

Trending Articles



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