@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 webserversbackend tecadmin_blog
mode http
balance roundrobin
option httpchk
option forwardfor
server web2 10.200.80.97 checkbackend webservers
mode http
balance roundrobin
option httpchk
option forwardfor
server web1 10.200.80.96:80 checkThe configuration is in the spoiler, but it does not work properly. Can you help me? Thank you
Posts: 2
Participants: 2