Persistent 502 Bad Gateway Error on Azure-Hosted Website

Sriranjan Pachika 25 Reputation points
2025-01-09T09:37:25.1366667+00:00

Dear Azure Technical Support Team,

I am reaching out to seek assistance with a recurring issue on our website hosted on Azure. We have been experiencing persistent 502 Bad Gateway errors, which is significantly impacting the availability of our site.

Website URL: https://tilesharbour.co.uk/

Could you please investigate and assist in resolving this issue? Additionally, any guidance on preventing such errors in the future would be greatly appreciated.

Please let me know if you require further details or access to the environment for diagnosis. I look forward to your prompt response.

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,122 questions
{count} votes

Accepted answer
  1. Ganesh Patapati 3,445 Reputation points Microsoft Vendor
    2025-01-09T11:05:43.68+00:00

    Hi Sriranjan Pachika

    Greetings!

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well

    For your domain tileshar****.co.uk, I noticed that an A record is mapped to two IP addresses. Please ensure that a proper A record is mapped to the application gateway IP and test it accordingly.

    NOTE: Avoid mapping multiple A records to a single domain.

    Screenshot 2025-01-09 161143

    After mapping a proper A record, if the issue persists, directly access your Backend URL to check whether your backend is functioning correctly.

    If your backend is not working, the issue originates from your backend, and you will need to resolve this with your internal team.

    If your backend is working fine, proceed with further troubleshooting steps.

    After you configure an application gateway, one of the errors that you may see is Server Error: 502 - Web server received an invalid response while acting as a gateway or proxy server. This error may happen for the following main reasons:

    Refer: https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-troubleshooting-502


    If above is unclear and/or you are unsure about something add a comment below.

    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    Regards,

    Ganesh


0 additional answers

Sort by: Most helpful

Your answer

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