I have created static site on azure account and I want to show that domain if my web app is stopped is there any way to do that using azure cdn.
I dont have front door or app gateway
I tried using azure cdn rule but its not redirecting domain
I have created static site on azure account and I want to show that domain if my web app is stopped is there any way to do that using azure cdn.
I dont have front door or app gateway
I tried using azure cdn rule but its not redirecting domain
Copyright © 2021 Jogjafile Inc.
In my Azure Application gateway, I am able to access site like below:
If you want to show that domain if my web app is stopped, you can use custom error page like below:
In Azure Application gateway -> listener add your custom error page URL which you stored in blob storage account or virtual machine to host an error page like below:
Now when my web app is stopped, or there is any malicious traffic Application Gateway will redirect to the custom error page like below:
You can create
Global level
error pages that are applied to all the listeners of Application gateway using PowerShell script :Output:
Reference:
Create Azure Application Gateway custom error pages | Microsoft Learn