Route By Header Policy

Route requests based on a location header

Configure the policy to route requests to different hosts based on the value of the location header.

Environment variables

  • EAST_HOSTNAME: The hostname that receives requests with the location header set to us-east, for example east.example.com

  • WEST_HOSTNAME: The hostname that receives requests with the location header set to us-west, for example west.example.com

Set up the policy

Attach the policy

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!