Cloudfront not accessing stream path

0

Dear Community,

I've got some problems setting up a CloudFront distribution. It is supposed to deliver an .mp3 stream.

My external non AWS origin is accessible via its Ip and path 12.34.56.789:8001/mystream.mp3 of course I've set up an DNS record to have a domain as origin. so now it is example.com:8001/mystream.mp3 which works fine without cloudfront.

Now cloudfront works fine to acess the server itself using example.com as the origin and set the port to 8001.

What doesn't work is setting the domain path as "/mystream.mp3" The Browser is returning a "502 The request could not be satisfied." Should I use root object instead or is there something I'm missing?

Thank you in advance

Iggy

TheIggy
asked a year ago180 views
2 Answers
0

Hi Iggy,

The 502 response could go multiple directions (if SSL certificates had an issue for example). From what you're describing I would suspect the domain path is what is causing this. This is used to append a directory path to the origin. e.g. if origin domain is example.com and domain path is /testing, this would result in example.com/testing/

Thus I think what Cloudfront might be doing is looking for example.com/mystream.mp3/*

AWS
answered a year ago
0

Hi,

thank you. I really had an issue with the domain. I had both root and path set to the same path. Unfortunately I now get an 404 error. That even makes it feel worse.

BR

TheIggy
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions