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.
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/108658-azure-keep-alive-url-vs-local-keep-alive-url