github.com/hellofresh/janus@v0.0.0-20230925145208-ce8de8183c67/docs/proxy/request_host_header.md (about)

     1  ### Request Host header
     2  
     3  Routing a request based on its Host header is the most straightforward way to proxy traffic through Janus, as this is the intended usage of the HTTP Host header. Janus makes it easy to do so via the hosts field of the API entity.
     4  
     5  `hosts` accepts multiple values, which must be in an array format when specifying them via the Admin API:
     6  
     7  ```json
     8  {
     9      "hosts": ["my-api.com", "example.com", "service.com"]
    10  }
    11  ```
    12  
    13  To satisfy the hosts condition of this API, any incoming request from a client must now have its Host header set to one of:
    14  
    15  ```http
    16  Host: my-api.com
    17  ```
    18  
    19  or:
    20  
    21  ```http
    22  Host: example.com
    23  ```
    24  
    25  or:
    26  
    27  ```http
    28  Host: service.com
    29  ```