禁止ip访问,域名可以访问哦!

worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name zhjlwly;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
server {
listen 80 default;
server_name "";
return 444;
}
}

猜你喜欢

转载自blog.51cto.com/2693543861/2120386