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;
}
}
本文出自 “运维路上” 博客,请务必保留此出处http://vekergu.blog.51cto.com/9966832/1697937
原文地址:http://vekergu.blog.51cto.com/9966832/1697937