Skip to main content

Route Request Examples

With Traffic Policy, yhou can use CEL interpolation to dynamically forward requests to different internal endpoints based on URL request attributes, including but not limited to:

  • URL
  • hostname
  • path
  • headers

This allows you to manage complex traffic topologies without manually creating and managing each forward-internal action.

This page contains examples of rules that route requests based on different request attributes.

See the forward-internal Traffic Policy action docs for more information.

Based on URL

This rule forwards requests from https://*.example.com to https://<SUBDOMAIN>.internal.

Loading…

Based on headers

This rule forwards requests containing a X-Customer-Value: {CUSTOMER} header to https://{CUSTOMER}.internal.

Loading…