MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.27k stars 21.46k forks source link

Wildcard subdomain for Azure CDN custom domain #20701

Closed FrankSandqvist closed 5 years ago

FrankSandqvist commented 5 years ago

It doesn't yet seem like Azure CDN supports wildcard subdomains for the custom domain.

I get "HostName "*.mydomain.com" is invalid. It must be a valid domain name, IP version 4, or IP version 6."

Is this something that is in the works?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

SubhashVasarapu-MSFT commented 5 years ago

@FrankSandqvist Thanks for the question! We are investigating and will update you shortly.

SubhashVasarapu-MSFT commented 5 years ago

@FrankSandqvist I have assigned this to content author for investigating on this.

MazAdl commented 5 years ago

Don't know if this helps but we have need for this feature also and we are experiencing the same behavior. The CDN we use is Verizon standard

FrankSandqvist commented 5 years ago

Sounds good. If it helps, we use the Microsoft CDN (not verizon or akamai)

mdgattuso commented 5 years ago

Hi all,

I'm from the Azure CDN product team. Support for wildcard domains for Verizon and Microsoft is coming early 2019. Feel free to reach out to me with any additional questions at maxwell.gattuso@microsoft.com.

SubhashVasarapu-MSFT commented 5 years ago

@FrankSandqvist We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

charlierz commented 5 years ago

@mdgattuso Any updates on this feature?

divahno commented 5 years ago

Hi @mdgattuso Any updates on this feature?

Hamish2405 commented 5 years ago

@mdgattuso - Any updates?

atomikdesign commented 5 years ago

Hello @mdgattuso, @SubhashVasarapu-MSFT, do you have some updates about wildcard domains?

Thanks in advance.

SubhashVasarapu-MSFT commented 5 years ago

@atomikdesign, There was no ETA set as of now for this feature. You can vote for this feature here and can provide your feedback. Thank you.

sander1095 commented 4 years ago

Hi.

Does this mean that if I host a site, I will have to visit it using www.example.com instead of example.com?

As in, support for example.com is not here yet?

JRam13 commented 4 years ago

Hi all,

I'm from the Azure CDN product team. Support for wildcard domains for Verizon and Microsoft is coming early 2019. Feel free to reach out to me with any additional questions at maxwell.gattuso@microsoft.com.

@mdgattuso any update on this?

govi2010 commented 4 years ago

@mdgattuso any update?

sander1095 commented 4 years ago

@govi2010

Take a look here https://docs.microsoft.com/en-us/azure/cdn/cdn-map-content-to-custom-domain

Any alias record type can be used for Custom domains if you're using Azure DNS as your domain provider. This walkthrough uses the CNAME record type. If you're using A or AAAA record types, follow the same steps below and replace CNAME with the record type of your choice. If you're using an alias record to add a root domain as a custom domain and you want to enable SSL, you must use manual validation as described in this article. For more information, see Point zone apex to Azure CDN endpoints.

In my case, I want to be able to go example.com instead of www.example.com .

I think you can use A records to solve this problem :)

govi2010 commented 4 years ago

@sander1095 I have wildcard domains. Like *.abc.com. a.abc.com b.abc.com asldjhasld.abc.com

Feday commented 4 years ago

Although this issue was closed with information from @mdgattuso, it is still not allowed to assign a wildcard domain to Azure CDN:

image

@SubhashVasarapu-MSFT should this be re-opened? Looks like there is a confusion about the differences between CDN and WebApp, even on UserVoice

Thanks

muecke36 commented 4 years ago

Any news on this? This is really needed!

DmitrySikorsky commented 4 years ago

Hi! Our service needs ability for the users to simply register their accounts (*.ourdomain.com). We can't have it on Azure so are going to move from it. Is there any option that this feature will be present in the near future? Thanks!

govi2010 commented 4 years ago

@DmitrySikorsky We also have *.ourdomain.com project. and We did not found a direct solution. So, We moved all our static files (JS/CSS/IMGs) to one specific domain(ourdomain.com in our case). and then add CDN to that static domain.

muecke36 commented 4 years ago

I can recommend siteground.com. Low cost and wildcard support for subdomains. (I am not related to them in any form)

sander1095 commented 4 years ago

@SubhashVasarapu-MSFT

Please re-open the issue, until official advice/support is given I do not understand why this issue is closed

CrazyBaran commented 4 years ago

Is there some walkaround for this issue? Evaluation of Https take couple hours so it not suitable for us. We need to have wildcard subdomain. Is there something which can be done?

DmitrySikorsky commented 4 years ago

@CrazyBaran Unfortunately I had to move away from Azure, there is no way to fix it using existing CDN tools there.

awentzel commented 4 years ago

I have a wildcarded domain and it's working great on Azure CDN. Can you be more specific to what you're trying to do? Add SSL to your CDN or create a wild card for your subdomains in the rules engine? This aspect I have not yet found a solution for, though I have posted a question https://github.com/MicrosoftDocs/azure-docs/issues/56190

patrickliang commented 4 years ago

@awentzel, how did you get wildcard domain working on Azure CDN? When I try to put in wildcard custom domain such as *.customdomain.com into CDN's custom domain configuration, I get Hostname is invalid error.

FrederickVdH commented 4 years ago

@awentzel Is it possible to explain how you managed to add a wildcard domain to a Azure CDN service?

mywebin commented 3 years ago

I have a wildcarded domain and it's working great on Azure CDN. Can you be more specific to what you're trying to do? Add SSL to your CDN or create a wild card for your subdomains in the rules engine? This aspect I have not yet found a solution for, though I have posted a question #56190

Mr Awentzel: Can you explain more on this ? how did you managed wild card white listing? can you share the domain URL..which you have enabled *.domain name ?

tomi-kr commented 3 years ago

Is there a workaround for this? We really need wildcard support for the CDN subdomains.

SystemDisc commented 3 years ago

@atomikdesign, There was no ETA set as of now for this feature. You can vote for this feature here and can provide your feedback. Thank you.

The provided link does not work and you closed the ticket. What do you suggest we do now? When I try to add a wildcard cert to Azure CDN, I get the error "The certificate doesn't include the hostname to be secured."

mohandass-pat commented 2 years ago

Is there a workaround for this? We really need wildcard support for the CDN subdomains.

atomikdesign commented 2 years ago

I suggest you to handle this in a different way as we do not have answers. It's quite easy to put something like Azure Front Door and configure subdomains rules.

I've done that for my projects that needed it