Can I use HTTP Authentication with AWS CloudFront?

Hi dear technical experts,

I'm trying to put CloudFront Distribution in front of a Yum repo (RPM) that uses Basic HTTP Authentication.

Authentication is absolutely essential; as the serviced packages are not free.

I installed CloudFront Distribution w / HTTPS, Redirect from HTTP to HTTPS with the following values:

Origin: yum.mydomain.com Origin ID: smp-yum.mydomain.com

Note: smp-yum.mydomain.com doesn't exist right now, I'm not sure if it needs it?

For testing purposes, I strictly use the domain abcdefgh.cloudfront.net.

Note. For security reasons, this is a fake.

I am getting the following error trying to visit the url:

CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection. 

      

Since I know the host is up and accepting connections from the public internet, I can only assume that this is due to the underlying http protocol.

I also tried to include credentials in the request via

https://username:password@yum.mydomain.com/repo/url

      

I'm guessing this is a two-part question: is it possible to use HTTP Basic Auth? and if so, are there any headers or something I need to tweak to make it work?

Sorry if this is here, I have emphatically checked for duplicates.

Thanks again everyone!

+3
amazon-web-services amazon-cloudfront yum http-basic-authentication


source to share


No one has answered this question yet

Check out similar questions:

217
HTTP Basic Authentication - what's the browser expected?
7
CloudFront license and AWS certificate issue SSL_ERROR_NO_CYPHER_OVERLAP
1
Cloudfront is unable to redirect some paths to the origin server
1
private yum / rpm repository on AWS S3 with basic authentication
0
Basic HTTP Authentication and Remove Extra Text Username: Password @ from Static Content (like image / js / css) url
0
Route53 + Cloudfront + Elastic Beanstalk Server not found
0
HTTP Basic Authentication - Optional Date Parameter (Rails)
0
CloudFront Distribution with OpenIdc with WebApp Authentication
0
Cloudfront with EC2 instance
0
Amazon Cloudfront Issue on iOS 10



All Articles
Loading...
X
Show
Funny
Dev
Pics