Skip to content

Commit 48d8f90

Browse files
Update how-to-path-query-header-based-routing-gateway-api.md
1 parent f865eba commit 48d8f90

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

articles/application-gateway/for-containers/how-to-path-query-header-based-routing-gateway-api.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,32 +249,34 @@ fqdn=$(kubectl get gateway gateway-01 -n test-infra -o jsonpath='{.status.addres
249249

250250
By using the curl command, we can validate three different scenarios:
251251

252-
1. Path based routing: Client request sent to http://frontend-fqdn/bar will be routed to backend-v2 service
252+
### Path based routing
253+
In this scenario, the client request sent to http://frontend-fqdn/bar will be routed to backend-v2 service.
253254

254255
Run the following command:
255256
```bash
256-
curl https://$fqdn/bar
257+
curl http://$fqdn/bar
257258
```
258259

259260
Notice the container serving the request is backend-v2.
260261

261-
2. Querystring + header + path routing: Client request sent to http://frontend-fqdn/some/thing?great=example with a header key/value part of "magic: foo" will be routed to backend-v2 service.
262+
### Querystring + header + path routing
263+
In this scenario, the client request sent to http://frontend-fqdn/some/thing?great=example with a header key/value part of "magic: foo" will be routed to backend-v2 service.
262264

263265
Run the following command:
264266
```bash
265-
curl https://$fqdn/some/thing?great=example -H "magic: foo"
267+
curl http://$fqdn/some/thing?great=example -H "magic: foo"
266268
```
267269

268270
Notice the container serving the request is backend-v2.
269271

270-
3. If neither of the first two scenarios are satisfied, Application Gateway for Containers will route all other requests to the backend-v1 service.
272+
### Default route
273+
If neither of the first two scenarios are satisfied, Application Gateway for Containers will route all other requests to the backend-v1 service.
271274

272275
Run the following command:
273276
```bash
274-
curl https://$fqdn/
277+
curl http://$fqdn/
275278
```
276279

277280
Notice the container serving the request is backend-v1.
278281

279-
280282
Congratulations, you have installed ALB Controller, deployed a backend application and routed traffic to the application via Gateway API on Application Gateway for Containers.

0 commit comments

Comments
 (0)