使用Elastic Load Balancer进行SSH流量

编程入门 行业动态 更新时间:2024-10-27 11:24:50
本文介绍了使用Elastic Load Balancer进行SSH流量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想在Phabricator安装之前设置一个AWS Elastic Load Balancer.我希望ELB平衡HTTP,HTTPS和SSH流量.这是否可能,或者我需要使用HAProxy或类似产品运行自己的SSH负载平衡器?

I am wanting to setup an AWS Elastic Load Balancer in front of a Phabricator installation. I would like the ELB to balance HTTP, HTTPS and SSH traffic. Is this possible or do I need to run my own SSH load balancer with HAProxy or similar?

为澄清起见,我的目标是对通过SSH进行的git操作进行负载平衡,这与管理SSH不同.

To clarify, I am aiming to load balance git operations which occur over SSH, as distinct from administrative SSH.

推荐答案

在我的Phabricator + AWS ELB设置中

In my case of Phabricator + AWS ELB setup

  • 允许phab实例使用ELB端口.

  • Allowed ELB port for phab instances.

    在apache站点启用的配置文件中配置了从HTTP到HTTPS的VirtualHost重定向.首先,将所有HTTPS连接转发到" phab.example/index.php ? path = $ 1",第二个规则是捕获HTTP连接并重定向到HTTPS.

    Configured VirtualHost redirection from HTTP to HTTPS in apache sites-enable configuration file. First rules all HTTPS connection forwarded to "phab.example/index.php?path=$1" and the second rule is catching HTTP connection and redirects to HTTPS.

    <VirtualHost *:80> : ... RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} =https RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA] RewriteCond %{HTTP:X-Forwarded-Proto} =http RewriteRule . %{HTTP:Host}%{REQUEST_URI} [L,R=permanent] ... : </VirtualHost>

  • 在phab配置(local.json)中将Phabricator基本URL更改为具有端口(443)的HTTPS
  • 我希望这会对您有所帮助

    I hope this will Help you

    更多推荐

    使用Elastic Load Balancer进行SSH流量

    本文发布于:2023-11-15 07:53:41,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1592558.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:流量   Load   Elastic   SSH   Balancer

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!