server {
listen 192.168.0.1:80;
listen 192.168.0.1:443 ssl;
server_name example.ru;
...
}
server {
listen 80;
listen 443 ssl;
server_name example.ru;
satisfy any;
allow 192.168.0.1/24;
allow 192.168.1.1/24;
allow 192.168.2.100;
deny all;
...
}