What is the alternative to passing in the host in the header?

#1

In the documentation below, you can test that Kong is forwarding requests to the service, you need to include the host in the header. Is this how we would ask users to hit our api?

curl -i -X GET \
  --url http://localhost:8000/ \
  --header 'Host: example.com'


However, I do not expect our users to pass in additional information in the header.

When I try to use this rule instead, I loose the path parameter granularity

  curl -i -X POST \
  --url http://localhost:9001/services/example-service/routes \
  --data 'paths[]=/.*'
0 Likes