标签:zhang htm attribute variable 代理 add pcr lock tcp
nginx1.9之后直接使用Stream配置就可以了,当然需要先安装stream模块
./configure --with-stream --with-pcre=../pcre-8.38
./configure --with-stream --without-http_rewrite_module
http {
……
}
stream {
upstream sftp{
hash $remote_addr consistent;
server 172.0.0.1:22 max_fails=3 fail_timeout=30s;
}
server {
listen 8080;
proxy_connect_timeout 1s;
proxy_timeout 30s;
proxy_pass sftp;
}
}
https://www.cnblogs.com/tinywan/p/6965467.html
https://zhangge.net/5037.html
https://blog.csdn.net/errizh/article/details/77936422
标签:zhang htm attribute variable 代理 add pcr lock tcp
原文地址:https://www.cnblogs.com/lshan/p/11849832.html