Nginx 模块 - nginx_tcp_proxy_module

fmms 12年前

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;  }

项目主页:http://www.open-open.com/lib/view/home/1332643741155