Nginx 模塊 - nginx_tcp_proxy_module

fmms 12年前發布 | 47K 次閱讀 Nginx Web服務器

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.baiduhome.net/lib/view/home/1332643741155

 本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!