1
2
3
4
5
6
7
8
9
10
11
12
server {
listen 80 default;
server_name _;
return 500;
}
server {
listen 443 default;
server_name _;
ssl_certificate ssl.crt;
ssl_certificate_key ssl.key;
return 500;
}

参考资料
https://www.muzifei.com/post/deny-access-via-ip.html