Reciving 404 network Error while refreshing gatsby website - azure

My Gatsby application is hosted in an Azure storage account. While I'm accessing the site for the first time it does not show a 404 but after a refresh, it shows a 404 error. The issues are not able to recreate in the local environment and in the gatsby cloud server.

The issues have been resolved by adding a new rule in the Azure CDN rules engine.
please refer to this documentation https://antbutcher.medium.com/hosting-a-react-js-app-on-azure-blob-storage-azure-cdn-for-ssl-and-routing-8fdf4a48feeb.

Related

Azure Resources WebApp deployed but not accessible from url

I'm trying to access my app, hosted on azure.
I've a finished c# solution. When I commit changes to Azure DevOps it triggers a (working & successful) build-pipeline.
It runs tests, publishes an artifact & testresults.
In my ServicePlan status is Ready and I see Data Exchanges on DataIn & DataOut graphs.
The Deployment Center:
Bu when I click the https://mywebsite.azurewebsites.net, No webpage was found for the web address.
I have Some basic Azure DevOps expierence, but this Azure Portal is something else :)
My basic questions would be:
Why is it not working?
Do I need a second pipeline, only for release? Or can I recycle the build pipeline?
Do I need some kind of deployment slots? Before I select a not-free slot, I want to know if this is necessary
What else could I be missing?
(My Azure resources include a sql-server, a sql-db, the actual appservice & a app service plan)
Thanks!
If you deploy web app to Azure and login https://<app-name>.azurewebsites.net, then the page still shows Microsoft page instead you owner page. You need check the default document, please ensure that the default page is listed in here.
Steps: login azure portal->App Service->configuration->Default documents
In Azure Web Apps, the default document is the web page that is displayed at the root URL for a website. The first matching file in the list is used. Refer File structure on azure to know more about the files and directories on Azure Web App.
Update1
When I go to the azurewebsites.net url I get a 404: No webpage was found for the web address.
Check this doc:
If you receive an HTTP 404 (Not Found) error when you browse to the URL of your custom domain, verify that your domain resolves to your app's IP address by using WhatsmyDNS.net. If not, it might be because of one of the following reasons:
The custom domain configured is missing an A record or a CNAME
record.
The browser client has cached the old IP address of your domain.
Clear the cache, and test DNS resolution again. On a Windows machine,
you clear the cache with ipconfig /flushdns.
Update2
the URL in my appservice is Azure-generated right?
Yes, then app service url is generated by Azure.
With making a new app service and going to the URL I do get a message app service is up and running.Time to take the next step and deploy your code.
And now, we should get this page, we need create new service connection and re-configure build and release pipeline and deploy your app.
Note: We need use the same user account and AAD domain to do this.

ERR_CONNECTION_RESET Azure CDN Custom Domain HTTPS

Hope someone can assist me in correcting this. I am on the last step to enable my CDN endpoint with a custom domain. currently the static website on storage works correctly the following ways.
1 - Storage Account endpoint
2 - Azure CDN xxxxxx.azureedge.net
CNAME is created and correctly configured and validated in azure for my cdn.customdomain.com but when I try to connect to it I get a ERR_CONNECTION_RESET when using a browser or 404 using curl. Any advice anyone can provide.
You could verify the followings:
Configuration. Make sure you select the Custom origin as the origin type and static website URI as the origin hostname.
Networking related. ISP blocks some websites. Firewall blocks specific websites. Internet connection is disabled or interrupted. Refer to this.
Browser error like Chrome. Clear your browser's cache and all locally stored data including cookies or try to use another browser. Refer to this.
Moreover, you could verify this via accessing the cdn.customdomain.com in an Azure VM, which is a different environment from the on-premise network.

Why Status Code 404 error message is different in different environment?

We have moved our website from local environment to Azure. But we are getting different error message for error code 404. Below are screen shots.
In case of existing website.
404 Error message from existing hosted Website
After cloud Migration.
404 Error message After Migrated to cloud
If you are receiving a 404 error while accessing your custom domain, then you are most likely missing the link between your Azure App Service Web App configuration and your custom domain.
For more details, refer: https://blogs.msdn.microsoft.com/benjaminperkins/2013/10/01/404-file-or-directory-not-found-when-mapping-custom-domain-to-a-windows-azure-web-site-server-error/

getting 404 even aftr 48 hours - azure VM and azure CDN

I have a LAMP based wordpress installation running on an azure VM. its working fine and publicly accessible.
I wanted to try azure CDN - Verizon for serving my images.
I made cdn, using the new resource manager, added my endpoint of filmycurry.com (my origin server). I am using http only, hence configured the same in endpoint.
My problem is that even after 48 hours. I still cant access any media using cdn. you may try the below links
working - vm based - http://filmycurry.com/wp-content/uploads/2016/05/yu-2.jpg
not working cdn - http://filmycurry.azureedge.net/wp-content/uploads/2016/05/yu-2.jpg
pls note, I had also configured the path correctly to /wp-content/uploads, since beginning.

Microsoft Azure - Getting a 404 page using custom domain with my web app

There's an issue with an Azure website I'm working on where I get an azure 404 page when trying to access my web app (set up with a custom domain) without www. (with www. the site works fine). NS lookup shows that when using the naked domain (infratecheng.com) the results are different than when looking up the full domain (www.infratecheng.com).
(source: cassey.org)
The custom domain has been set up as per the instructions on the azure portal.
I wonder if this is a problem with configuration within azure or is it a problem with my domain provider settings?
Many thanks
Most likely, the problem is that you only added www.infratecheng.com as a host name for your Azure Web App, but did not add infratecheng.com. So when Azure gets requests to infratecheng.com, it doesn't know about any site that can handle them, and returns a 404.

Resources