I'm using the Azure Websites hosting in shared mode. After going through the process of adding a custom domain I seem to be getting a 404 when browsing to www.mydomain.com
When I browse to my site using the *.azurewebsites.net address it renders perfectly. I have also turned on all available logging and can't see the 404 errors in the web logs or any other signs of the problem.
To configure the custom domain name I followed instructions on this page, including setting up the CNAME record to awverify.mysite.com and an A record to the IP address provided in the portal.
I know there are other questions on SO, like this or this but none of them provide an answer that fits my http 404 issue. Also many of the questions on SO seem to be out of date not that azure websites support domain names in shared mode (I believe)
Cheers Rob
The tried and tested method of going to bed and having another look in the morning seemed to work for me;) (Which means it turns out to be my own stupidity)
I had only added 'mydomain.com' in the azure portal and needed to add 'www.mydomain.com' as well.
I could swear that I saw some help text in the portal saying that domains should be input in that format though. Oh well never mind. I hope this helps someone else with the same error.