---
apiVersion: config.istio.io/v1alpha2
kind: RouteRule
metadata:
  name: fortio1-redir
spec:
    destination:
      name: echosrv1
    match:
        request:
          headers:
            uri:
              prefix: /fortio1/ # prefix
    rewrite:
        uri: /  # drop the /fortio1 prefix when talking to fortio such as /fortio1/debug -> /debug
---
apiVersion: config.istio.io/v1alpha2
kind: RouteRule
metadata:
  name: fortio2-redir
spec:
    destination:
      name: echosrv2
    match:
        request:
          headers:
            uri:
              prefix: /fortio2/ # prefix
    rewrite:
        uri: /  # drop the /fortio2 prefix when talking to fortio such as /fortio2/debug -> /debug
