TCP load balancing with domain name
aRaviNd
ambadiaravind at gmail.com
Thu Jun 21 08:35:57 UTC 2018
Hi All,
I am trying to configure tcp load balancing with Nginx with below
configuration.
stream {
server {
listen 25;
resolver 1.1.1.1;
proxy_pass $host:25;
}
}
If I try to connect mx1.abc.com i would like to expand my variable $host to
mx1.abc.com and internally it will resolve to servers who handles mail for
that mx record.
Please let me know is there any nginx variable in stream which supports
hostname i am connecting.
Aravind M D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180621/f3a8343f/attachment.html>
More information about the nginx
mailing list