Configure Apache with multiple ProxyPass

前端 未结 2 2165
醉话见心
醉话见心 2021-02-18 19:25

i am trying to configure my apache server as proxy to serve two internal services , one listening on 8080 and should receive traffic on specific URL and the other listening on 8

2条回答
  •  死守一世寂寞
    2021-02-18 20:15

    Put the ProxyPass rules in the correct order as required

    if you want to evaluate /webhook1 rule and send it to 8080, else send the traffic to 8077 the rules should be on the following order

    ProxyPass /webhook1  http://localhost:8080
    ProxyPassReverse /webhook1 http://localhost:8080
    ProxyPass /  http://localhost:8077
    ProxyPassReverse / http://localhost:8077
    

提交回复
热议问题