ELB

in  

AWSでELBを利用する

ELBを使う上での注意事項 https://qiita.com/falcon8823/items/87cf2b025df5b267ac01

トラブルシューティング http://docs.aws.amazon.com/ja%5Fjp/elasticloadbalancing/latest/classic/ts-elb-error-message.html#ts-elb-errorcodes-http504

ELB Healthcheckのユーザーエージェント

^ELB-HealthCheckerで判定する。

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP:X-Forwarded-Port} !^443$
  RewriteCond %{HTTP_USER_AGENT} !^ELB-HealthChecker # User-Agentで判定する
  RewriteRule ^(.*)?$ https://example.net$1 [R=301,L]
</IfModule>

Share