根据子字符串向差异服务器发出haproxy转发请求

时间:2018-12-06 07:13:05

标签: url redirect port acl haproxy

我需要根据/ substring将https请求转发到两个不同的服务器

Example:
 frontend myApp
 bind *:443
  acl url_server1 path_beg /myapp/cas
  use_backend Server1BackEnd if url_server1
  acl url_server2 path_beg /Myapp2
  use_backend Server2BackEnd if url_server2
  acl url_server3 path_beg /myapp3
  use_backend Server3BackEnd if url_server3
 backend Server1BackEnd
  mode tcp
  server myAppServer1 127.0.0.1:7443 check
 backend Server2BackEnd
  mode tcp
  server myAppServer1 127.0.0.1:8445 check
 backend Server3BackEnd
  mode tcp
  server myAppServer2 10.4.1.41:7443 check

0 个答案:

没有答案