Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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?

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
237 views
Welcome To Ask or Share your Answers For Others

1 Answer

In my case of Phabricator + AWS ELB setup

  1. Allowed ELB port for phab instances.

  2. Configured VirtualHost redirection from HTTP to HTTPS in apache sites-enable configuration file. First rules all HTTPS connection forwarded to "https://phab.example.com/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 . https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]  
  ...
 :    
</VirtualHost>
  1. Change Phabricator base url to HTTPS with port(443) in phab configuration (local.json)

I hope this will Help you


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...