server {
listen 8890;
server_name you.sever.com.cn;
location ~ ^/index.html {
root /code/qhfaxweb_re/errorpages;
}
location / {
if ($http_x_forwarded_for !~* "***.250.***.27") {
return 404;
}
proxy_pass http://**.**.44.56:8890;
proxy_set_header Host $host:8890;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}