title: Custom subdomain name for blob CDN endpoint causes error 400
body: <p>I'm trying to set up a custom domain name for a blob CDN endpoint, following <a href="https://azure.microsoft.com/en-us/documentation/articles/cdn-map-content-to-custom-domain/" rel="nofollow">these</a> instructions, but can't seem to access my content using the subdomain static.mydomain.com. I've created the following record with my registrar:</p>
  
  <pre><code>Subdomain: static
  
  Type: CNAME
  
  TTL: 7200
  
  Data: blobconatinername.blob.core.windows.net.
  </code></pre>
  
  <p>For example, I can access this file (note https): 
  <a href="https://blobcontanername.blob.core.windows.net/somefile.mp3" rel="nofollow">https://blobcontanername.blob.core.windows.net/somefile.mp3</a></p>
  
  <p>But trying to access this file</p>
  
  <p><a href="http://static.mydomain.com/somefile.mp3" rel="nofollow">http://static.mydomain.com/somefile.mp3</a></p>
  
  <p>I get an invalid URI error (an error 400):</p>
  
  <pre><code>This XML file does not appear to have any style information associated with it. The document tree is shown below.
  &lt;Error&gt;
  &lt;Code&gt;InvalidUri&lt;/Code&gt;
  &lt;Message&gt;
  The requested URI does not represent any resource on the server. RequestId:c5ec4859-0001-0079-0bf8-961dfa000000 Time:2016-04-15T09:22:32.1317877Z
  &lt;/Message&gt;
  &lt;UriPath&gt;
  http://static.mydomain.com/somefile.mp3
  &lt;/UriPath&gt;
  &lt;/Error&gt;
  </code></pre>
  
  <p>Resolution?</p>