码迷,mamicode.com
首页 > 其他好文 > 详细

通过阿里云4层代理nginx到本地服务器

时间:2019-04-19 19:35:16      阅读:257      评论:0      收藏:0      [点我收藏+]

标签:size   必须   代理   roc   images   water   lis   type   ado   

1.在阿里云上购买slb并配置转发信息
技术图片
2.选择使用阿里云nginx转发服务器
技术图片

  1. 阿里云ecs服务器安装的nginx必须安装模块--with-stream模块
    技术图片
  2. 配置nginx方向代理到主机的机房(配置在nginx.conf文件中,)
    stream {
    upstream tcp_proxy {
    server 10.83.32.207:22;
    }
    server {
    listen 9999;
    proxy_pass tcp_proxy;
    }
    }

技术图片

通过阿里云4层代理nginx到本地服务器

标签:size   必须   代理   roc   images   water   lis   type   ado   

原文地址:https://blog.51cto.com/whitehat/2381599

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!