nginx用TCP转发HTTP

stream {
    upstream socket_proxy {
        hash $remote_addr consistent;

        server 127.0.0.1:80 weight=5 max_fails=3 fail_timeout=120s;
    }
    server {
       listen 8069;
       proxy_connect_timeout 2s;
       proxy_timeout 5s;
       proxy_pass socket_proxy;
    }

你可能感兴趣的:(PGSQL,NGINX,nginx,http)