title: Possible to use http basic authentication with AWS CloudFront?
body: <p>I am attempting to put a CloudFront Distribution in front of a Yum (RPM) repo which uses basic http authentication. I've setup the CloudFront Distribution w/ HTTPS, redirection from HTTP to HTTPS, with the following values:</p>
  
  <pre><code>Origin: yum.mydomain.com
  Origin ID: smp-yum.mydomain.com
  </code></pre>
  
  <p>Note: smp-yum.mydomain.com does not exist right now, I am not sure if it needs to?</p>
  
  <p>For testing purposes I am strictly using the abcdefgh.cloudfront.net domain.</p>
  
  <p>I am getting the following error trying to visit the URL:</p>
  
  <pre><code>CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection. 
  </code></pre>
  
  <p>Because I know the host is up, and accepts connections from the public internet, I can only assume that it is due to the http basic auth.</p>
  
  <p>I have also attempted to include the credentials into the request, via</p>
  
  <pre><code>https://username:password@yum.mydomain.com/repo/url
  </code></pre>
  
  <p>I suppose this is a two-part question: Is it possible to use HTTP Basic Auth? and if so, is there some headers or something that I need to customize in order to make it work?</p>