sacloud / libsacloud

[Deprecated] Library for SAKURA Cloud API with Go
Apache License 2.0
18 stars 13 forks source link

ELB:リクエストヘッダに基づいたルールの適用 #786

Closed yamamoto-febc closed 3 years ago

yamamoto-febc commented 3 years ago

https://cloud-news.sakura.ad.jp/2021/07/29/enhanced-lb-apply-rule-by-header/

yamamoto-febc commented 3 years ago

Note:

image

https://manual.sakura.ad.jp/cloud/appliance/enhanced-lb/#enhanced-lb-rule

実サーバに転送する際のサーバグループ指定が必須になっている。

yamamoto-febc commented 3 years ago

リクエスト例(該当部分のみ抜粋):

        "Rules": [
          {
            "Host": "",
            "Path": "",
            "RequestHeaderName": "User-Agent",
            "RequestHeaderValue": "*badbot*",
            "RequestHeaderValueIgnoreCase": false,
            "RequestHeaderValueNotMatch": false,
            "Action": "forward",
            "ServerGroup": "group1"
          }
        ],