Reputation: 127
Yesterday I had successfully setup a custom subdomain in Azure storage. I had set up assets.iprobesolutions.com to point to iprobesolutions.blob.core.windows.net. This is a screenshot of my host records CNAME set up: https://www.dropbox.com/s/ndfmn5dd7m48aqg/Screenshot%202016-05-30%2019.36.11.png?dl=0. As I said, this was working fine.
Today I decided instead to have iprobesolutions.com point to iprobesolutions.blob.core.windows.net and got as far as Azure accepting the domain using the indirect CNAME validation.
However while http://iprobesolutions.blob.core.windows.net/docs/installation-note-en-us-bosch-dicentis-wireless-installation-set-up.pdf is resolving, when I try the following it does not resolve http://iprobesolutions.com/docs/installation-note-en-us-bosch-dicentis-wireless-installation-set-up.pdf and I get error "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable".
These are my host record setups for iprobesolutions.com: https://www.dropbox.com/s/xqw2d9k3gj6mnjs/Screenshot%202016-05-30%2021.30.22.png?dl=0
I've tried many combinations for a few hours and can't get it to work....
Does anyone have an idea what I'm missing ? iprobesolutions.com is hosted in azure app service. Can't I use the same domain for both hosting and blob storage ?
Upvotes: 0
Views: 2587
Reputation: 389
You can't map a domain to both a web app (running in the app service) and storage. Also, you can't CNAME the root domain (so you can't map iprobesolutions.com to blob storage).
You should be able to map www.iprobesolutions.com to blob storage, though. But realize if you do this, anybody who types in www.iprobesolutions.com will not be taken to your web app, which is the expected behavior. You might want to reconsider that course of action, and use storage.iprobesolutions.com or something like that instead.
Upvotes: 2
Reputation: 935
I believe your problem is that you must include the subdomain in the CNAME record.
From https://azure.microsoft.com/en-us/documentation/articles/storage-custom-domain-name/:
A CNAME record is a DNS feature that maps a source domain to a destination domain. In this case, the source domain is your custom domain and subdomain--note that the subdomain is always required.
Can you try your second mapping with a subdomain and see if that works?
Upvotes: 1