Andrew Lebedev
Andrew Lebedev

Reputation: 1

Azure Blob redirect

We have an Azure Blob storage, and some folders on it were redirected to a custom URL.

Suddenly those custom urls coming up with 404 page

Files are still accessible from original location. So I guess something happened with redirect.

How do I check redirect for Azure blob containers?

Thank you!

Upvotes: 0

Views: 1561

Answers (2)

Yuvraj Mule
Yuvraj Mule

Reputation: 450

Always use without encoded blob URL while redirection. Azure API always construct encoded blob URL. If your blob name contains Space character then after encode it converts to %20. Some redirection function again encode this encoded URL and produce 404 error.

Upvotes: 0

Janley Zhang
Janley Zhang

Reputation: 1587

When you bind your blob endpoint url, I suggest you could check whether there is a space in text box. Because the 404 error means the url is not correct. And in your comment,it seems that you should use IS-Demographics.pdf instead of 'MS' in domain name.

Besides, I have binded the domain name to blob endpoint url ,it works fine on my side. I suggest you could try the following steps to achieve your goal.

  1. In App Service Domain>DNS Zone>click Record set button, you could bind your domain name to your blob endpoint url(like [storage account name].blob.core.windows.net).

enter image description here

  1. In Storage account>Custom domain>enter your domain name and click Save button: enter image description here

Finally,if I visit a txt file in container by domain name, it works fine:

enter image description here

Visit txt file by blob endpoint url:

enter image description here

Upvotes: 1

Related Questions