我想在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>
我希望这会对您有所帮助
I hope this will Help you
更多推荐
使用Elastic Load Balancer进行SSH流量
发布评论