HowTo: map your own domains on Windows Azure Applications (*.cloudapp.net)

 

imageIf you already successfully deployed a Windows Azure Application and turned it on “active” you will get an URL after the pattern “Name.clodapp.net” for less. But how is it possible to show “name.de or “www.name.de“ on my application? The (short) answer:

The magic key is transmission and “CNAME”

Scenario: We already have our app on azure and all that we want now is to add the right domain. Our TestApp.cloudapp.net should be able to call with testapp.de.

My domains are at the moment on Hosteurope and there exists a kind of domain administration (like on every provider):

image

The first entry includes this:

http://testapp.de shows this IP

The problem: We don´t know the IP of Azure. So either you enter a (not Azure-) machine or you set up a transmission rule with the help of the Hoster.

If you decide to work with you own machine (what´s stupid in my opinion but so what ;) ) it´s an easy way to transmit to another address in IIS 7. You do so here:

Timage

image

the second entry is interesting

Here I´m going to define a CNAME like http://testapp.de – a CNAME just works if you have a “Subdomain”. The CNAME just points to testapp.cloudapp.net.

Requestflow:

http://testapp.de -> is transmitted to http://www.testapp.de and this is transmitted to the Azure platform. But it won´t work without www or another subdomain (also app.testapp.de would be work).

But the cloudapp.net is NEVER shown to the user.

That´s it! Smiley

More Informations:

- Custom Domain Names in Windows Azure

- Using the new Windows Azure CDN with a Custom Domain

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

About the author

Written by Code Inside Team

Learn more about our team.

Comment on this post

Recent Posts

  • Automated Security Analyser for ASP.NET websites

    Evil Hackers are lurking everywhere and many Web-applications are delicately and share “too much” with the attacker. A quick (first!) overview offers the Tool “ASafaWeb”. All the website does is making a few requests and writing an Analyses including problem solving’s. There are no permanent disadvantages (bad requests/ DoS attacks and so on). Example: KnowYourStack.com ...

  • image1489-570x194.png
    „Sign in with Twitter“ for your own ASP.NET WebApp

      “Sign in with Twitter” is a popular practice to authenticate the users on your website. One advantage compared to an own registration is the lower inhibition for the user. But on the other hand Twitter doesn’t fess up with all the information’s and you will get into a kind of addiction. At the end ...

  • image1485-570x194_thumb.png
    CodePlex is going to be updated

      CodePlex the Microsoft Open Source Project Hosting Plattform hasn’t changed that much in the last few years and for a few times I thought Microsoft stopped the whole developing process. But now I found out that there is still life in the project. Maybe it is because of the success of GitHub or because ...

  • image1474_thumb.png
    What does Adobe in the flash-free web? Magazine-Style Layouts with CSS Regions!

      Adobe is well known for Photoshop and Flash but of course there is a lot more. According to the “Future Post” from Google Adobe declared one of their big subjects on a Blogpost. I’m talking about the W3C Working Draft to CSS Regions. Adobe cooperates with the WebKit Team and W3C on this. What ...

  • image1471-523x194.png
    HTML 5 Games, Tooling & 3D

      Game Developing is an interesting subject for all kind of software developer. But as a web developer without any Flash-skills there aren’t that much starting points. With HTML5 and the combination between Javascript, CSS3 and fast browsers there are the first “robust” HTML5 games. HTML5 games? Is this real? Neowin created a “Top 10” ...

Support us