nginx_tcp_proxy_module 为 Nginx 增加对 TCP 的反向代理支持,提供连接有效性检测和状态监控。

配置示例:

upstream cluster {
    # simple round-robin
    server 127.0.0.1:3306;
    server 127.0.0.1:1234;

    check interval=3000 rise=2 fall=5 timeout=1000;

    #check interval=3000 rise=2 fall=5 timeout=1000 type=ssl_hello;

    #check interval=3000 rise=2 fall=5 timeout=1000 type=http;
    #check_http_send "GET / HTTP/1.0\r\n\r\n";
    #check_http_expect_alive http_2xx http_3xx;
}

add the feature of tcp proxy with nginx, with health check and status monitor — More...

http://yaoweibin.github.com/nginx_tcp_proxy_module

Issues
#74may be a debug in ngx_tcp_upstream_check_broken_connection?by chenbk85  2013-04-17
#73reverse proxy tcp and http on the same portby beurdouche  2013-03-26
#72TCP error_logby splitice  2013-03-24
#31basic auth htpsswdby manguz  2013-03-21
#71upstream ssl suppoprt!by sleets  2013-03-13

master分支代码最近更新:2013-03-28