I have 3 app services on Azure, like
And I have created an Application gateway in front of them, with WAF enabled.
And I'm going to setup 3 custom domain and SSL certificate for each of the app service. What I want to achieve is like below:
Is this possible with only 1 application gateway to support multiple domain? Or I must purchase 3 gateways, which is 3 times cost. Basically I only want to use the WAF to protect my site.
Your ask is possible with one Application Gateway.
Here is the configuration that you need to set up.
Listener 1 (app1.mydomain.com) --> HTTP Setting 1 (Check Use App Service check box) --> Backend Pool 1(app1.azurewebsites.net)
Listener 2 (app2.mydomain.com) --> HTTP Setting 2 (Check Use App Service check box) --> Backend Pool 2(app2.azurewebsites.net)
Listener 3 (app3.mydomain.com) --> HTTP Setting 3 (Check Use App Service check box) --> Backend Pool 3(app3.azurewebsites.net)
So, you need 3 Listener , 3 HTTP Settings, 3 Backend Pool and 3 rules.
You need to create probes for each HTTP Setting and you enable HTTPS protocol and also check pick hostname from Backend HTTP Settings.
Reference: https://docs.microsoft.com/en-us/azure/application-gateway/configure-web-app-portal
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.