title: Custom domain for s3 bucket?
body: <p>I have S3 bucket called "mybucket". Files from there are available under following links:</p>
  
  <ol>
  <li>mybucket.s3.amazonaws.com/path/to/file.jpg</li>
  <li>s3.amazonaws.com/mybucket/path/to/file.jpg</li>
  </ol>
  
  <p>I need custom domain for files served from s3. I added DNS CNAME record pointing to from <code>images.mydomain.com</code> to <code>s3.amazonaws.com</code> (also tried <code>images.mydomain.com -&gt; mybucket.s3.amazonaws.com</code>). </p>
  
  <p>In both cases when I try to GET <code>images.mydomain.com/mybucket/path/to/file/jpg</code> (or <code>images.mydomain.com/path/to/file.jpg</code>) I get S3 error like</p>
  
  <pre><code>Bucket 'images.mydomain.com' does not exist
  </code></pre>
  
  <p>Is there any workaround for this or I have to change bucket name to <code>images.mydomain.com</code>? </p>