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

Haproxy configuration problem

$
0
0

@smangiagli wrote:

I would like to implement a configuration that allows me to redirect requests to two internal web servers. In the case where it is indicated as url http://sowinproxy the requests must be directed to the server 10.200.80.96, while if the request is http://sowinproxy/blog the requests must be redirected to the 10.200.80.97 server.

frontend http-in
bind :80
acl is_blog path_reg ^/blog/.

use_backend tecadmin_blog if is_blog
default_backend webservers

backend tecadmin_blog
mode http
balance roundrobin
option httpchk
option forwardfor
server web2 10.200.80.97 check

backend webservers
mode http
balance roundrobin
option httpchk
option forwardfor
server web1 10.200.80.96:80 check

The configuration is in the spoiler, but it does not work properly. Can you help me? Thank you

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4746


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