2.nginx配置如下:
server {
listen 80;
server_name nginx.XXX.com
charset gbk2312;
location /test {
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504 http_404;
proxy_connect_timeout 150s;
proxy_read_timeout 150s;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://192.168.0.150:18080/;
}
}
3.公网80端口已在"安全组"配置
4.nginx已正常启动
- 魔咒626
用nginx -t检查下配置是否正确?
检查配置文件