Hello!
here is my example of not working config
stream {
map $hostname $stream_destination {
hostname.com ip_address_1;
hostname2.com ip_address_2;
}
server {
listen 8080;
proxy_pass $stream_destination:8080;
}
}
i need to route tcp traffic based on hostname, help me to find out this please.
here is my example of not working config
stream {
map $hostname $stream_destination {
hostname.com ip_address_1;
hostname2.com ip_address_2;
}
server {
listen 8080;
proxy_pass $stream_destination:8080;
}
}
i need to route tcp traffic based on hostname, help me to find out this please.