title | description | services | documentationcenter | author | manager | editor | tags | ms.assetid | ms.service | ms.devlang | ms.topic | ms.tgt_pltfrm | ms.workload | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Create a Path-based rule for an application gateway by using the portal | Microsoft Docs |
Learn how to create a Path-based rule for an application gateway by using the portal |
application-gateway |
na |
georgewallace |
timlt |
azure-resource-manager |
87bd93bc-e1a6-45db-a226-555948f1feb7 |
application-gateway |
na |
article |
na |
infrastructure-services |
12/13/2016 |
gwallace |
[!div class="op_single_selector"]
URL Path-based routing enables you to associate routes based on the URL path of Http request. It checks if there is a route to a back-end pool configured for the URL lists in Application Gateway and send the network traffic to the defined back-end pool. A common use for URL-based routing is to load balance requests for different content types to different back-end server pools.
URL-based routing introduces a new rule type to application gateway. Application gateway has two rule types: basic and Path-Based rules. Basic rule type provides round-robin service for the back-end pools while Path-Based rules in addition to round robin distribution, also takes path pattern of the request URL into account while choosing the backend pool.
The following scenario goes through creating a Path-based rule in an existing application gateway. The scenario assumes that you have already followed the steps to Create an Application Gateway.
A Path-based rule requires its own listener, before creating the rule be sure to verify you have an available listener to use.
Navigate to the Azure portal and select an existing application gateway. Click Rules
Click Path-based button to add a new Path-based rule.
The Add path-based rule blade has two sections. The first section is where you defined the listener, the name of the rule and the default path settings. The default path settings are for routes that do not fall under the custom path-based route. The second section of the Add path-based rule blade is where you define the path-based rules themselves.
Basic Settings
- Name - This is a friendly name to the rule that is accessible in the portal.
- Listener - This is the listener that is used for the rule.
- Default backend pool - This setting is the setting that defines the back-end to be used for the default rule
- Default HTTP settings - This setting is the setting that defines the HTTP settings to be used for the default rule.
Path-based rules
- Name - This is a friendly name to path-based rule.
- Paths - This setting defines the path the rule will look for when forwarding traffic
- Backend Pool - This setting is the setting that defines the back-end to be used for the rule
- HTTP setting - This setting is the setting that defines the HTTP settings to be used for the rule.
Important
Paths: The list of path patterns to match. Each must start with / and the only place a "*" is allowed is at the end. Valid examples are /xyz, /xyz* or /xyz/*.
Adding a path-based rule to an existing application gateway is an easy process through the portal. Once a path-based rule has been created, it can be edited to add additional rules easily.
To learn how to configure SSL Offloading with Azure Application Gateway see Configure SSL Offload