1.hosts绑定域名到ip(10.11.3.206)
127.0.0.1 pyfisheyes.****.com
2.nginx配置
server {
listen 80;
server_name pyfisheyes.****.com;
location / {
proxy_pass http://127.0.0.1:5000;
proxy_set_header X-Real-IP $remote_addr;
}
access_log /home/pyfisheyes/logs/pyfisheyes.access.log gzip;
}
3.本地调试
curl -H "Host:pyfisheyes.****.com" http://10.11.3.206:5000 -I