nginx vhost config

view full story

http://serverfault.com – This is my config file for nginx to allow it to respond only to domain1.com, and not domain2.com server { server_name .domain1.com; root /var/www/; #charset koi8-r; #access_log logs/host.access.log main; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass; proxy_redirect off; } } However this is still listening on domain2.com. What am I missing here? (HowTos)