Azure wildcard subdomains - azure

I have a reserved azure website and I've been following this article - http://www.stratospher.es/blog/post/wildcard-subdomains-in-windows-azure
I have added a wildcard cname record which points to mysite.azurewebsites.net
via the azure management portal --> manage domains. I have the added an entry into the domain names list:
test1.mysite.com
If i browse to this url it works perfectly. However, if then try test2.mysite.com I get a 404. If i was to add test2.mysite.com to the domain names list in azure then test2.mysite.com would then work.
What have I missed ?

I got a reply from the author of the article above. Basically when he wrote that Azure websites didnt exist, he was using the azure cloud app.
In Cloud apps if you want to use your own domain you just point it to whatever.cloudapp.net. Your not required to verifiy a 'custom' domain like you have to in azure websites.

Related

How do I map a URL to a uksouth.cloudapp.azure.com website

I have a website running on Azure: -
e.g. mysite.uksouth.cloudapp.azure.com
I have purchased a domain e.g. www.mysite.co.uk
When I go to https://www.mysite.co.uk I want to display the website mysite.uksouth.cloudapp.azure.com.
I've tried adding an app service in azure, but it gives me the URL https://mysite.azurewebsites.net.
So https://www.mysite.co.uk now brings up a Azure welcome screen asking me to deploy my code.
How do I get https://mysite.co.uk to display https://mysite.uksouth.cloudapp.azure.com?
Thanks.
Ian.
I found this https://learn.microsoft.com/en-us/azure/cloud-services/cloud-services-custom-domain-name-portal#add-a-cname-record-for-your-custom-domain
So I deleted my App Service in Azure, as that's not what I needed and followed the above instructions to configure the DNS for cloudapp.
You have to map your custom domain name to the web app. Below is the Microsoft doc with the steps.
Custom Domain

azurewebsites.net was already mapped, but still apears

I followed exactly the description by Microsoft to map their web apps on one's own external domain. And the redirection is even correct.
But my purpose was to map mydaylivery.com to the mydayliveryop.azurewebsites.net, so that the mydayliveryop.azurewebsites.net is replaced by my mydaylivery.com domain. However, there is just a redirection, but no replacement.
In my azure portal under the web app dashboard and beside "URL" is also mydaylivery.com mentioned. But if you go on mydaylivery.com, you see that there is still the azurewebsites.net subdomain.
I have used dig web interface to check your dns. It seems that you don't configure the domain correctly. The article you provide is suitable for Azure cloud service not Azure web App. I would suggest you have a look at this article. Please note below part in the article:
To use an A record to map to your Azure app's IP address, you actually need to create both an A record and a TXT record.

Microsoft Azure - Getting a 404 page using custom domain with my web app

There's an issue with an Azure website I'm working on where I get an azure 404 page when trying to access my web app (set up with a custom domain) without www. (with www. the site works fine). NS lookup shows that when using the naked domain (infratecheng.com) the results are different than when looking up the full domain (www.infratecheng.com).
(source: cassey.org)
The custom domain has been set up as per the instructions on the azure portal.
I wonder if this is a problem with configuration within azure or is it a problem with my domain provider settings?
Many thanks
Most likely, the problem is that you only added www.infratecheng.com as a host name for your Azure Web App, but did not add infratecheng.com. So when Azure gets requests to infratecheng.com, it doesn't know about any site that can handle them, and returns a 404.

Allowing Users to Enter a Custom cname on Azure Websites

I have a multi-site application running on Azure Websites. When a user signs up, they pick a name for their application and they end up with "appname.coolapplication.com". Everything so far is working great within our own domain.
Our application needs to allow users to enter their own custom domain. For example, they want to view their application from "elsewhere.com" rather than "appname.coolapplication.com". How do I go about configuring Azure Websites to allow me to do this?
You don't. Per these instructions you instruct the customer to enter a CNAME record on their domain registrar for the Azure domain, and then it begins to work.
EDIT:
The CNAME only "just works" for Azure Cloud Apps. For Azure Websites, it turns out you must add the domain in the portal as well. I'd thus recommend switching your Azure Websites to Azure Cloud Apps to simplify the issue.
You can use the powershell api to add custom hostnames.
See this question for details: Add many domains to an azure web site

Multi-tenant Azure dynamic wildcard CName

I am trying to create a multitenant Azure website which is a way for people to sign up and get their sub-domains. I have followed the instructions in here (http://www.stratospher.es/blog/post/wildcard-subdomains-in-windows-azure) and manage to get all *.mydomain.com CNAME to mydomain.azurewebsites.net according to (http://www.digwebinterface.com/)
Here is the problem
if I go to tenant1.mydomain.com I'll get the 404 server error. However if I log in to Azure and go to my website Manage custom domains and add the tenant1.mydomain.com then everything would work fine.
The idea behind the wildcard is I can add tenant pragmatically/dynamically. Is there anyway to automated this process or add a wildcard in the azure Manage custom domains. Is there any difference between app cloud service and website?
Thanks for your help
Update
I end up using cloud services instead of websites. You don't need to configure the custom domain names in the control panel anymore. Just simply point cname and your good to go.
Did you check out the use of Amazon Route 53 to configure the domain mapping in Azure, it seems that there are options.
Please refer the following links
Sub domain mapping in windows azure
Add custom Domain to azurewebsite

Resources