So, I can do this in AWS and I'm curious if it's possible in Azure blob storage.
Currently I've mapped a domain like so: www.contoso.com -> http://asdf.blob.core.windows.net/
asdf has a container called 'main'. which contains my index.html, js, and .css files
Currently to hit the site I need to go to a url like this: www.contoso.com/main/index.html
But what I really want is for people to be able to reach the files with just the .com address
Does anyone know if this is possible in azure?
While you can store all of your static assets in Azure blobs, Azure doesn't have the notion of a default file in blob storage. That is, you cannot map your domain name to index.html for example. You can, however, reference all other static content directly e.g. mysite.com/foo.html (since foo.html would effectively be a blob).
You'd need a way to host your root file though. Where you place that is really up to you (e.g. web app, VM, cloud service). Since it's static content, web app might provide the best starting point (given there's a free tier, vs consuming an entire VM to host just a single file).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With