I am still newbie to nginx.
I am trying to block every request that came from somewhere but not server_name.
According to documentation it should work but I didn't succede.
I assume there are should be another method, say, block in if condition by checking $hostname.
What do you suggest to do in order to block request?
Thanks
Hostheader? – Shane Madden May 22 '12 at 15:52serversection should have worked just fine, then, and is better than using anifstatement. What configuration did you try that didn't work? – Shane Madden May 22 '12 at 15:55