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

Redirection with URL masking

$
0
0

@Khuram wrote:

Hi,
I am new in Haproxy Load Balancing and i am doing okay in redirecting traffic on two different URLs. But unable to mask URL for client end because all I want is to redirect traffic from test.uv.edu.pk to test1.uv.edu.pk and test2.uv.edu.pk without changing URL at client end so that client could not see the backend URLs.

Some of my configurations are shared below:

frontend test
bind 192.168.128.10:80
acl is_test.uv.edu.pk hdr(host) -i test.uv.edu.pk
use_backend test_backend_servers if is_test.uv.edu.pk
default_backend test_backend_servers
option forwardfor

 backend test_backend_servers
 mode http
 reqrep ^([^\ ]*)\ (.*) \1\ \2
 balance            roundrobin
server             test1 192.168.128.11:80 maxconn 5000 check
server             test2 192.168.128.12:80 maxconn 5000 check

====================================

Regards,
Khuram

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4718

Trending Articles



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