title: Azure Traffic Manager, custom domain and 404
body: <p>I got lost with Traffic Manager setup and custom domain name.<br/><br/>
  First I had two mobile apps in 2 regions (westeuropeapp.azurewebsites.net and brazilapp.azurewebsites.net) as endpoints of Traffic Manager (trafficmanager.trafficmanager.net). It was Working.<br /><br/></p>
  
  <p>Then I wanted to use a custom domain name with subdomains: westeurope.mydomain.com, brazil.mydomain.com and trafficmanager.mydomain.com. So I followed Azure doc instructions and created CNAME for my subdomains pointing to the two mobile apps and to traffic manager. Then I added westeurope.mydomain.com (resp. brazil.mydomain.com) as hostname for my west europe mobile app (resp. brazil mobile app).<br/><br/></p>
  
  <p>But when I navigate to trafficmanager.mydomain.com I got a 404.<br/><br/></p>
  
  <p>I checked the DNS resolution with <a href="http://digwebinterface.com" rel="nofollow noreferrer">Dig</a>, I can see that trafficmanager.mydomain.com has a cname to trafficmanager.trafficmanager.net which has a cname to westeuropeapp.azurewebsites.net which resolve to ip xxxx.<br/>This looks good.<br/><br/></p>
  
  <p>If I type that ip into my browser I got 404. But if I type westeuropeapp.azurewebsites.net I got my app running. I also checked westeuropeapp.azurewebsites.net in Dig and it resolves to the same ip as above.</p>
  
  <p>What am I missing? (I don't even talk about SSL, it will be next post.)</p>