我只想限制访问我的网站,所以我使用nginx 允许和拒绝,但这会导致拒绝所有ips,包括允许的IP
我的nginx配置
upstream myapp {
server 127.0.0.1:xxxx;
}
server {
listen port_number;
server_name my_server_ip;
charset utf-8;
client_max_body_size 75M;
location / {
allow ip_allowed;
deny all;
uwsgi_pass myapp;
include /etc/nginx/uwsgi_params;
}
}
请帮帮我