location / {
        proxy_pass  http://aaaa; # 转发规则
        proxy_read_timeout 300;
        proxy_connect_timeout 300;
        proxy_redirect off;
        proxy_set_header Host $proxy_host;
        #修改转发请求头,让8080端口的应用可以受到真实的请求
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    



upstream aaaa{
  # server api.uukd.net:9501 weight=1;
  # server api.uukd.net;
  server 106.55.107.126:9801 weight=5;
}