Haproxy如何使用主机作为目标转发http请求

时间:2016-08-10 09:37:26

标签: networking nginx proxy haproxy

我正在尝试使用Haproxy根据http请求中的“主机”转发http请求。

我能够通过以下方式在Nginx中完成:

...
location / {
   proxy_pass http://$http_host:80$request_uri;
}
...

如何在Haproxy中完成?

0 个答案:

没有答案