yaoweibin/nginx_tcp_proxy_module — Issue #25: server_name ignored
Author: TheRock1987
Created: 2012-02-12 10:13:45+00:00
State: open

Hey guys,

Is it possible that the server_name directive in the server directive is be ignored?

If I write something like:

tcp {
upstream cluster {
server 127.0.0.1:8000;

check interval=3000 rise=2 fall=5 timeout=1000;
}

server {
listen 9000;
server_name test.example.com;

tcp_nodelay on;
proxy_pass cluster;
}
}

The server is reachable by test.example.com:9000, test2.example.com:9000 and all other subdomains and the main domain.