You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/application-gateway/redirect-internal-site-powershell.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@ services: application-gateway
6
6
author: vhorne
7
7
ms.service: application-gateway
8
8
ms.topic: article
9
-
ms.date: 11/14/2019
9
+
ms.date: 03/03/2020
10
10
ms.author: victorh
11
11
---
12
12
13
13
# Create an application gateway with internal redirection using Azure PowerShell
14
14
15
-
You can use Azure Powershell to configure [web traffic redirection](multiple-site-overview.md) when you create an [application gateway](overview.md). In this tutorial, you define a backend pool using a virtual machines scale set. You then configure listeners and rules based on domains that you own to make sure web traffic arrives at the appropriate pool. This tutorial assumes that you own multiple domains and uses examples of *www.contoso.com* and *www\.contoso.org*.
15
+
You can use Azure Powershell to configure [web traffic redirection](multiple-site-overview.md) when you create an [application gateway](overview.md). In this tutorial, you define a backend pool using a virtual machines scale set. You then configure listeners and rules based on domains that you own to make sure web traffic arrives at the appropriate pool. This tutorial assumes that you own multiple domains and uses examples of *www\.contoso.com* and *www\.contoso.org*.
A listener is required to enable the application gateway to route traffic appropriately to the backend pool. In this tutorial, you create two listeners for your two domains. In this example, listeners are created for the domains of *www.contoso.com* and *www\.contoso.org*.
105
+
A listener is required to enable the application gateway to route traffic appropriately to the backend pool. In this tutorial, you create two listeners for your two domains. In this example, listeners are created for the domains of *www\.contoso.com* and *www\.contoso.org*.
106
106
107
107
Create the first listener named *contosoComListener* using [New-AzApplicationGatewayHttpListener](/powershell/module/az.network/new-azapplicationgatewayhttplistener) with the frontend configuration and frontend port that you previously created. A rule is required for the listener to know which backend pool to use for incoming traffic. Create a basic rule named *contosoComRule* using [New-AzApplicationGatewayRequestRoutingRule](/powershell/module/az.network/new-azapplicationgatewayrequestroutingrule).
108
108
@@ -291,7 +291,7 @@ Enter your domain name into the address bar of your browser. Such as, [https://w
291
291
292
292

293
293
294
-
Change the address to your other domain, for example https://www.contoso.org and you should see that the traffic has been redirected back to the listener for `www.contoso.com`.
294
+
Change the address to your other domain, for example https://www.contoso.org and you should see that the traffic has been redirected back to the listener for www\.contoso.com.
0 commit comments