Share via

Azure API Management returning "404 Web Site not found" with no infrastructure changes

anthony 81 Reputation points
2026-03-02T02:13:45.38+00:00

Environment

  • Azure API Management (managing custom domain + SSL)

Problem

Our API has begun returning errors for all requests despite no changes having been made to our infrastructure.

When navigating to an endpoint via the APIM-managed custom domain in the browser, we first see:


ERR_CERT_COMMON_NAME_INVALID

Proceeding past the certificate warning then shows:


404 Web Site not found.

You may be seeing this error due to one of the reasons listed below:

* Custom domain has not been configured inside Azure.

* Client cache is still pointing the domain to old IP address. Clear the cache by running the command ipconfig/flushdns.

Bypassing APIM and hitting the backend endpoint directly confirms the API itself is online and responding correctly. The issue appears to be isolated to the APIM-managed custom domain layer.

What we have verified

  • ✅ Backend API is online — direct requests return expected responses
  • ✅ Managed certificate has not expired (confirmed in Azure portal)
  • APIM backend URL is set to [confirm hostname]

Support Ticket

We attempted to raise a support ticket via the Azure portal but were unable to complete the process despite having an active support plan and the appropriate permissions. We are posting here in the hope of getting some guidance in the meantime.

Question

What could cause this and how should we go about resolving it?

Any guidance appreciated. Thanks.

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.


1 answer

Sort by: Most helpful
  1. anthony 81 Reputation points
    2026-04-02T04:54:02.6466667+00:00

    Hi Siddhesh,

    Unfortunately, it has been over a month since we reported this issue. Given that it was affecting several thousand of our customers, we could not wait any longer for a resolution.

    We have since resolved the issue on our end by moving away from Microsoft managed certificates. Consequently, we no longer require further support.

    That said, I suspect this is a widespread issue with managed certificates in APIM. I would recommend contacting other customers who may be experiencing similar symptoms, as this appears to be a broader platform problem.


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.