question

03946618 avatar image
0 Votes"
03946618 asked SumanthMarigowda-MSFT commented

STATIC WEBSITE NOT WORKING

Hi,
I have loaded html to $web folder but I am getting the following

https://hackaton20.z13.web.core.windows.net/ - This the url

The requested content does not exist.
HttpStatusCode: 404
ErrorCode: WebContentNotFound
RequestId : ccef61c7-601e-001c-5ae1-09a2e6000000
TimeStamp : 2022-01-15T07:28:03.2320095Z

what might be the problem ?

azure-blob-storageazure-static-web-apps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SumanthMarigowda-MSFT avatar image
1 Vote"
SumanthMarigowda-MSFT answered SumanthMarigowda-MSFT commented

@03946618 Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.

Based on the error message: The HTTP 404 Not Found response status code indicates that the server cannot find the requested resource. Links that lead to a 404 page are often called broken or dead links and can be subject to link rot. A 404 status code only indicates that the resource is missing: not whether the absence is temporary or permanent

https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website-how-to?tabs=azure-portal

The reason you're getting this error is because the ACL of the $web blob container is Private by default.

Please change the ACL to either Blob (recommended) or Container and you should not see this error.

Essentially if you access the static website's contents through the static website endpoint (e.g. account.z5.web.core.windows.net), there's no need to change the blob container's ACL. Contents should be accessible even if the ACL of $web is Private. Blob container's ACL comes into picture when you access the content through blob storage endpoint (e.g. account.blob.core.windows.net).

If the issue still persist, please share the screenshot of the issue

Please let us know if you have any further queries. I’m happy to assist you further.


Please do not forget to 165957-screenshot-2021-12-10-121802.png and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.