An administrator is configuring an Azure Application Gateway v2 named AppGw1. The administrator needs to configure path-based routing for a web application to meet the following requirements:
- Traffic to contoso.com/images/* must route to a backend pool named PoolImages.
- Traffic to contoso.com/videos/* must route to a backend pool named PoolVideos.
- All other traffic must route to a backend pool named PoolDefault.
Which routing rule type and configuration should the administrator use on AppGw1?
- AA basic routing rule with three listeners, one for each path, and three separate backend pools.
- A path-based routing rule with a path map that defines paths for /images/* and /videos/* pointing to their respective backend pools, and PoolDefault configured as the default backend target.Cevap
- CA path-based routing rule with a multi-site listener for each path and a single backend settings association.
- DA basic routing rule with a single multi-site listener and custom health probes configured for each path.
Cevap
A path-based routing rule with a path map that defines paths for /images/* and /videos/* pointing to their respective backend pools, and PoolDefault configured as the default backend target.
A path-based routing rule allows Azure Application Gateway to evaluate the path pattern of incoming request URLs (such as /images/* or /videos/*) and forward them to corresponding backend pools. Any traffic that does not match the specified path patterns is automatically directed to the default backend target (PoolDefault).
Adım Adım Çözüm
Anahtar Kavram
Application Gateway Path-based routing rules