技术解析
upstream uplocal3{ server localhost:9800; }
server { listen 80; server_name www.hbjdzx.org.cn;
location /{
proxy_connect_timeout 3;
proxy_send_timeout 30;
proxy_read_timeout 30;
proxy_pass http://uplocal3/TrainHelper/site/;
# proxy_pass http://192.168.1.111:9800/TrainHelper/site/;
proxy_set_header REMOTE_ADDR $remote_addr;
proxy_set_header Host $host;
}
}
直接访问 http://192.168.1.111美国服务器:9800/TrainHelper/site/的话可以请求的到, 但配置 Nginx 反向代理就请求不到,求各位大神帮忙,看下配置有什么问题。