This is my config:
upstream beta {
server localhost:49213;
}
server {
listen 80;
server_name beta.example.com;
location / {
proxy_pass http://beta;
}
}
server {
listen 80;
server_name "";
return 444;
}
When I open localhost:80 I also see the content of localhost:49213. I find it wrong. Nginx should reject all requests that don't have beta.example.com in Host HTTP header, right? Why it's not happening?