Share via

Configure Custom page on Application Gateway with static web site in the storage account

SLIMANI Smail 60 Reputation points
2023-12-18T17:46:55.33+00:00

hello,

I want to configure error pages (403, 502..) on the Application Gateway using a static site hosted on a storage account. I've allowed the subnet of the Application Gateway and its public IP address.

When I add the URL of the dedicated page to my listener, I encounter this error.

Error: Custom error page for status code '403', has a URL xxxx.z28.web.core.windows.net/static/403/index.html' for which the blob or container does not exist, for httpListeners

However, when I remove the IP address restrictions on the storage account(enable for all network), adding the URL to the listener works.

Any Help please ?

regards

Azure Storage
Azure Storage

Globally unique resources that provide access to data management services and serve as the parent namespace for the services.

Azure Application Gateway
Azure Application Gateway

An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.

{count} votes

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 27,661 Reputation points Microsoft Employee Moderator
    2023-12-23T02:27:53.7866667+00:00

    @SLIMANI Smail OBS/DD

    Thank you for your patience here.

    I got a response back from the team.

    The storage account must be publicly accessible for the custom error pages to work. Currently it is not possible to restrict access to the custom error pages only to the Application Gateway. If you wish to add this as a feature, please feel free to share your feedback on the Azure Feedback portal

    Hope this helps! Please let me know if you have any additional questions. Thank you!


    ​​Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.