Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • iqb-dawn 21 posts 101 karma points
    Mar 29, 2022 @ 15:27
    iqb-dawn
    0

    Azure Keep Alive Url vs Local Keep Alive Url

    We are getting lot of 404 errors in Azure Application Insights with URL https://my-umbraco-cms.azurewebsites.net/umbraco/api/keepalive/ping

    Interestingly when I run the application in local it works as expected https://localhost:44335/umbraco/api/keepalive/ping

    If it does not work in Azure should we disable it using,

    <keepAlive disableKeepAliveTask="true" keepAlivePingUrl="{umbracoApplicationUrl}/api/keepalive/ping" />
    

    As far as I understand it has,

    public class OnlyLocalRequestsAttribute : ActionFilterAttribute
    {
        public override void OnActionExecuting(HttpActionContext actionContext)
        {
            if (!actionContext.Request.IsLocal())
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }
        }
    }
    

    So only localhost works but we can't put localhost in Azure case.

Please Sign in or register to post replies

Write your reply to:

Draft