STATIC WEBSITE NOT WORKING

אופיר לירון 1 Reputation point
2022-01-15T07:39:25.013+00:00

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 Files
Azure Files
An Azure service that offers file shares in the cloud.
1,311 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,244 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,943 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Sumarigo-MSFT 47,106 Reputation points Microsoft Employee
    2022-01-18T10:22:11.9+00:00

    @אופיר לירון 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://learn.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.

    1 person found this answer helpful.

  2. testuser7 271 Reputation points
    2023-05-18T12:59:12.2066667+00:00

    Hi @Sumarigo-MSFT

    My problem is not the access-level but I have to put $web in the URL

    eg., https://myvctrustdomain.blob.core.windows.net/$web/.well-known/OIM-bullets.txt

    How can I get rid of $web ??

    i want to access my resource like https://myvctrustdomain.blob.core.windows.net/.well-known/OIM-bullets.txt

    0 comments No comments

  3. Masood Huraira 5 Reputation points
    2023-12-01T13:06:42.8333333+00:00
    0 comments No comments

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.