nginx常用配置

1/ 转发:

upstream opossuperset_backend{
server 10.52.2.243:6666;
keepalive 1000;
}

server{

location / {
proxy_pass http://opossuperset_backend;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $http_x_real_ip;
}
}

上一篇:Backend事后诸葛亮


下一篇:NodeJS MySQL客户端不支持身份验证协议