寫在http{}以外
stream { upstream ftp{ hash $remote_addr consistent; server 10.14.168.32:21; } server { listen 65521; proxy_connect_timeout 300s; proxy_timeout 300s; proxy_pass ftp; } }
// 轉發本地65521端口至10.14.168.32的21端口,也可利用firewall和iptables轉發
寫在http{}以外
stream { upstream ftp{ hash $remote_addr consistent; server 10.14.168.32:21; } server { listen 65521; proxy_connect_timeout 300s; proxy_timeout 300s; proxy_pass ftp; } }
// 轉發本地65521端口至10.14.168.32的21端口,也可利用firewall和iptables轉發
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。