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!
source to share
No one has answered this question yet
Check out similar questions: